| IResolveOperationGetOrCreateInstance Method  | 
 
            Get or create and share an instance of the requested service in the currentOperationScope.
            
 
    Namespace: 
   Autofac.Core.Resolving
    Assembly:
   Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
 Syntax
SyntaxObject GetOrCreateInstance(
	ISharingLifetimeScope currentOperationScope,
	ResolveRequest request
)
Function GetOrCreateInstance ( 
	currentOperationScope As ISharingLifetimeScope,
	request As ResolveRequest
) As Object
Parameters
- currentOperationScope
- Type: Autofac.CoreISharingLifetimeScope
 The scope in the hierarchy in which the operation will begin.
- request
- Type: AutofacResolveRequest
 The resolve request.
Return Value
Type: 
ObjectThe component instance.
 See Also
See Also