Click or drag to resize

LifetimeScopeTryGetSharedInstance Method (Guid, NullableGuid, Object)

Try to retrieve a shared instance based on a primary GUID key and possible secondary qualifying GUID key.

Namespace:  Autofac.Core.Lifetime
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public bool TryGetSharedInstance(
	Guid primaryId,
	Nullable<Guid> qualifyingId,
	out Object value
)

Parameters

primaryId
Type: SystemGuid
Key to look up.
qualifyingId
Type: SystemNullableGuid
Secondary key to look up, to better identify an instance that wraps around another instance or is otherwise "namespaced" by it.
value
Type: SystemObject
The instance that has the specified keys.

Return Value

Type: Boolean
true if the key was found; otherwise, false.

Implements

ISharingLifetimeScopeTryGetSharedInstance(Guid, NullableGuid, Object)
See Also