Table of Contents

Method UseScope

Namespace
FS.Hosting.Shared
Assembly
FS.Hosting.Shared.dll

UseScope(IServiceProvider)

Current verwendet den Service-Provider eines bestehenden Service-Scopes.

public static IDisposable UseScope(IServiceProvider scopedServiceProvider)

Parameters

scopedServiceProvider IServiceProvider

Returns

IDisposable

UseScope(IUserControlledScope)

Current verwendet den mit CreateUserControlledScope() erstellten ServiceProvider-Scope.

public static IDisposable UseScope(IUserControlledScope scope)

Parameters

scope IUserControlledScope

Returns

IDisposable

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 IUserControlledScope
global IGlobalObjects

Returns

IDisposable