Click or drag to resize

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
Object GetOrCreateInstance(
	ISharingLifetimeScope currentOperationScope,
	ResolveRequest request
)

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: Object
The component instance.
See Also