3 instantiations of LifetimeContext
System.Composition.Hosting (3)
System\Composition\Hosting\CompositionHost.cs (1)
62
var container = new
LifetimeContext
(new ExportDescriptorRegistry(allProviders), s_noBoundaries);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
53
var lifetimeContext = new
LifetimeContext
(c, boundaries);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
57
var lifetimeContext = new
LifetimeContext
(c, boundaries);
21 references to LifetimeContext
System.Composition.Hosting (14)
System\Composition\Hosting\CompositionHost.cs (3)
23
private readonly
LifetimeContext
_rootLifetimeContext;
25
private CompositionHost(
LifetimeContext
rootLifetimeContext)
62
var
container = new LifetimeContext(new ExportDescriptorRegistry(allProviders), s_noBoundaries);
System\Composition\Hosting\Core\CompositeActivator.cs (1)
13
public delegate object CompositeActivator(
LifetimeContext
context, CompositionOperation operation);
System\Composition\Hosting\Core\CompositionOperation.cs (1)
31
public static object Run(
LifetimeContext
outermostLifetimeContext, CompositeActivator compositionRootActivator)
System\Composition\Hosting\Core\CycleBreakingExportDescriptor.cs (1)
40
private object Activate(
LifetimeContext
context, CompositionOperation operation)
System\Composition\Hosting\Core\LifetimeContext.cs (6)
12
/// Represents a node in the lifetime tree. A <see cref="
LifetimeContext
"/> is the unit of
29
private readonly
LifetimeContext
_root;
30
private readonly
LifetimeContext
_parent;
61
internal LifetimeContext(
LifetimeContext
parent, string[] sharingBoundaries)
75
public
LifetimeContext
FindContextWithin(string sharingBoundary)
80
var
toCheck = this;
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
53
var
lifetimeContext = new LifetimeContext(c, boundaries);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
57
var
lifetimeContext = new LifetimeContext(c, boundaries);
System.Composition.TypedParts (7)
System\Composition\TypedParts\ActivationFeatures\LifetimeFeature.cs (2)
32
var sharingKey =
LifetimeContext
.AllocateSharingId();
36
var
scope = c.FindContextWithin(sharingBoundary);
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
74
var lc = Expression.Parameter(typeof(
LifetimeContext
));
103
var setAction = Expression.Lambda<Func<object,
LifetimeContext
, CompositionOperation, object>>(
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
168
var contextParam = Expression.Parameter(typeof(
LifetimeContext
), "cc");
System\Composition\TypedParts\Discovery\DiscoveredPropertyExport.cs (2)
13
private static readonly MethodInfo s_activatorInvoke = typeof(CompositeActivator).GetRuntimeMethod("Invoke", new[] { typeof(
LifetimeContext
), typeof(CompositionOperation) });
25
var args = new[] { Expression.Parameter(typeof(
LifetimeContext
)), Expression.Parameter(typeof(CompositionOperation)) };