Method UseScope
UseScope(IServiceProvider)
Current verwendet den Service-Provider eines bestehenden Service-Scopes.
public static IDisposable UseScope(IServiceProvider scopedServiceProvider)
Parameters
scopedServiceProvider
IServiceProvider
Returns
UseScope(IUserControlledScope)
Current verwendet den mit CreateUserControlledScope() erstellten ServiceProvider-Scope.
public static IDisposable UseScope(IUserControlledScope scope)
Parameters
scope
IUserControlledScope
Returns
UseScope(IUserControlledScope, IGlobalObjects)
Current verwendet den mit CreateUserControlledScope() erstellten ServiceProvider-Scope und
GlobalContext verwendet das übergebene global
.
public static IDisposable UseScope(IUserControlledScope scope, IGlobalObjects global)
Parameters
scope
IUserControlledScopeglobal
IGlobalObjects