ISharingLifetimeScopeTryGetSharedInstance 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
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax bool TryGetSharedInstance(
Guid primaryId,
Nullable<Guid> qualifyingId,
out Object value
)
Function TryGetSharedInstance (
primaryId As Guid,
qualifyingId As Nullable(Of Guid),
<OutAttribute> ByRef value As Object
) As Boolean
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:
Booleantrue if the key was found; otherwise,
false.
See Also