Repository navigation
Expand file tree
/
Copy pathIFamily.cs
More file actions
49 lines (42 loc) · 1.5 KB
/
Copy pathIFamily.cs
File metadata and controls
49 lines (42 loc) · 1.5 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using StructureMap.Pipeline;
namespace StructureMap.Query
{
public interface IFamily
{
/// <summary>
/// The resulting object from this Instance will be evicted from its
/// lifecycle if it has already been created and cached
/// </summary>
/// <param name="instance"></param>
void Eject(Instance instance);
/// <summary>
/// Ejects any existing object for this Instance from its lifecycle
/// and permanently removes the configured Instance from the container
/// </summary>
/// <param name="instance"></param>
void EjectAndRemove(Instance instance);
/// <summary>
/// Builds the object
/// </summary>
/// <param name="instance"></param>
/// <returns></returns>
object Build(Instance instance);
/// <summary>
/// Queries the lifecycle if it has been created
/// </summary>
/// <param name="instance"></param>
/// <returns></returns>
bool HasBeenCreated(Instance instance);
/// <summary>
/// The default lifecycle for this PluginType/Family
/// </summary>
ILifecycle Lifecycle { get; }
Type PluginType { get; }
/// <summary>
/// A reference to the underlying container runtime model. Doing any direct manipulation
/// against this service will void the warranty on StructureMap.
/// </summary>
IPipelineGraph Pipeline { get; }
}
}