Language

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
実装

コンストラクター

Name 説明
AsyncServiceScope(IServiceScope)

AsyncServiceScope 構造体の新しいインスタンスを初期化します。 IServiceScopeのインスタンスをラップします。

プロパティ

Name 説明
ServiceProvider

IServiceProviderスコープからの依存関係を解決するために使用されます。

メソッド

Name 説明
Dispose()

アンマネージド リソースの解放、解放、またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

DisposeAsync()

アンマネージ リソースの解放、解放、またはリセットに関連するアプリケーション定義タスクを非同期的に実行します。

拡張メソッド

Name 説明
ConfigureAwait(IAsyncDisposable, Boolean)

非同期破棄から返されるタスクの待機を実行する方法を構成します。

適用対象