Click or drag to resize

ISharingLifetimeScopeCreateSharedInstance Method (Guid, FuncObject)

Creates a shared instance with a GUID key.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
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.
See Also