LifetimeContext.FindContextWithin(String) Method

Definition

Finds the broadest lifetime context within all of the specified sharing boundaries.

public System.Composition.Hosting.Core.LifetimeContext FindContextWithin (string sharingBoundary);

Parameters

sharingBoundary
String

The sharing boundary to find a lifetime context within.

Returns

The broadest lifetime context within all of the specified sharing boundaries.

Remarks

Currently, the root cannot be a boundary.

Applies to

Produkt Versjoner
.NET Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)