CompositionOperation.Run(LifetimeContext, CompositeActivator) Method

Definition

Runs the composition operation starting within the specified lifetime context, driven by the specified activator.

C#
public static object Run(System.Composition.Hosting.Core.LifetimeContext outermostLifetimeContext, System.Composition.Hosting.Core.CompositeActivator compositionRootActivator);

Parameters

outermostLifetimeContext
LifetimeContext

The context in which to begin the operation (the operation can flow to the parents of the context if required).

compositionRootActivator
CompositeActivator

The activator that drives the operation.

Returns

The composed object graph.

Applies to

产品 版本
.NET Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)