AsyncServiceScope 結構

定義

IServiceScope實作的實作IAsyncDisposable

public value class AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft::Extensions::DependencyInjection::IServiceScope
public readonly struct AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft.Extensions.DependencyInjection.IServiceScope
type AsyncServiceScope = struct
    interface IServiceScope
    interface IDisposable
    interface IAsyncDisposable
Public Structure AsyncServiceScope
Implements IAsyncDisposable, IDisposable, IServiceScope
繼承
AsyncServiceScope
實作

建構函式

AsyncServiceScope(IServiceScope)

初始化 AsyncServiceScope 結構的新執行個體。 包裝 IServiceScope 的執行個體。

屬性

ServiceProvider

用於從範圍解析相依性的 IServiceProvider

方法

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

DisposeAsync()

非同步執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之由應用程式定義的工作。

適用於