AsyncServiceScope Struktur

Definisi

Implementasi IServiceScope 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

Nama Deskripsi
AsyncServiceScope(IServiceScope)

Menginisialisasi instans baru dari AsyncServiceScope struktur. Membungkus instans IServiceScope.

Properti

Nama Deskripsi
ServiceProvider

yang IServiceProvider digunakan untuk mengatasi dependensi dari cakupan.

Metode

Nama Deskripsi
Dispose()

Melakukan tugas yang ditentukan aplikasi yang terkait dengan membebaskan, merilis, atau mengatur ulang sumber daya yang tidak dikelola.

DisposeAsync()

Melakukan tugas yang ditentukan aplikasi yang terkait dengan membebaskan, merilis, atau mengatur ulang sumber daya yang tidak dikelola secara asinkron.

Metode Ekstensi

Nama Deskripsi
ConfigureAwait(IAsyncDisposable, Boolean)

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

Berlaku untuk