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