Click or drag to resize

LifetimeScopeCreateSharedInstance Method (Guid, FuncObject)

Creates a shared instance with a GUID key.

Namespace:  Autofac.Core.Lifetime
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public Object CreateSharedInstance(
	Guid id,
	Func<Object> creator
)

Parameters

id
Type: SystemGuid
Key.
creator
Type: SystemFuncObject
A function that will create the instance when called.

Return Value

Type: Object
The shared instance.

Implements

ISharingLifetimeScopeCreateSharedInstance(Guid, FuncObject)
See Also