-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIFactoryProducedInstanceGroup.cs
More file actions
31 lines (29 loc) · 1.39 KB
/
IFactoryProducedInstanceGroup.cs
File metadata and controls
31 lines (29 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
namespace RapidField.SolidInstruments.ObjectComposition
{
/// <summary>
/// Manages object creation, storage, resolution and disposal for a related group of factory-produced object instances.
/// </summary>
public interface IFactoryProducedInstanceGroup : IObjectContainer
{
/// <summary>
/// Returns the lazily-initialized instance of specified type that is managed by the current
/// <see cref="IFactoryProducedInstanceGroup" />.
/// </summary>
/// <typeparam name="T">
/// The type of the lazily-initialized instance to return.
/// </typeparam>
/// <returns>
/// The lazily-initialized instance of specified type that is managed by the current
/// <see cref="IFactoryProducedInstanceGroup" />.
/// </returns>
/// <exception cref="ObjectDisposedException">
/// The object is disposed.
/// </exception>
public Lazy<T> GetLazy<T>()
where T : class;
}
}