AsyncServiceScope Struktur

Definisi

IServiceScope Implementasi yang mengimplementasikan 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
Warisan
AsyncServiceScope
Penerapan

Konstruktor

AsyncServiceScope(IServiceScope)

Menginisialisasi instans baru struct AsyncServiceScope . Membungkus instans IServiceScope.

Properti

ServiceProvider

yang IServiceProvider digunakan untuk mengatasi dependensi dari cakupan.

Metode

Dispose()

Melakukan tugas yang ditentukan aplikasi yang terkait dengan membebaskan, melepaskan, atau mereset sumber daya yang tidak terkelola.

DisposeAsync()

Melakukan tugas yang ditentukan aplikasi yang terkait dengan membebaskan, melepaskan, atau mereset sumber daya yang tidak dikelola secara asinkron.

Metode Ekstensi

ConfigureAwait(IAsyncDisposable, Boolean)

Mengonfigurasi bagaimana menunggu tugas yang dikembalikan dari asinkron sekali pakai dilakukan.

Berlaku untuk