| 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
SyntaxObject CreateSharedInstance(
	Guid id,
	Func<Object> creator
)
Function CreateSharedInstance ( 
	id As Guid,
	creator As Func(Of Object)
) As Object
Parameters
- id
- Type: SystemGuid
 Key.
- creator
- Type: SystemFuncObject
 A function that will create the instance when called.
Return Value
Type: 
ObjectThe shared instance.
 See Also
See Also