TaskAsyncEnumerableExtensions.ConfigureAwait Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Túlterhelések
| Név | Description |
|---|---|
| ConfigureAwait(IAsyncDisposable, Boolean) |
Konfigurálja, hogy az aszinkron eldobható feladatok hogyan lesznek végrehajtva. |
| ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean) |
Konfigurálja, hogy az aszinkron iterációból visszaadott feladatok hogyan lesznek végrehajtva. |
ConfigureAwait(IAsyncDisposable, Boolean)
Konfigurálja, hogy az aszinkron eldobható feladatok hogyan lesznek végrehajtva.
public:
[System::Runtime::CompilerServices::Extension]
static System::Runtime::CompilerServices::ConfiguredAsyncDisposable ConfigureAwait(IAsyncDisposable ^ source, bool continueOnCapturedContext);
public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this IAsyncDisposable source, bool continueOnCapturedContext);
static member ConfigureAwait : IAsyncDisposable * bool -> System.Runtime.CompilerServices.ConfiguredAsyncDisposable
<Extension()>
Public Function ConfigureAwait (source As IAsyncDisposable, continueOnCapturedContext As Boolean) As ConfiguredAsyncDisposable
Paraméterek
- source
- IAsyncDisposable
A forrás aszinkron eldobható.
- continueOnCapturedContext
- Boolean
Rögzítendő és visszaállítható-e az aktuális környezetbe.
Válaszok
A konfigurált aszinkron eldobható.
A következőre érvényes:
ConfigureAwait<T>(IAsyncEnumerable<T>, Boolean)
Konfigurálja, hogy az aszinkron iterációból visszaadott feladatok hogyan lesznek végrehajtva.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Runtime::CompilerServices::ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(System::Collections::Generic::IAsyncEnumerable<T> ^ source, bool continueOnCapturedContext);
public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) where T : allows ref struct;
public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext);
static member ConfigureAwait : System.Collections.Generic.IAsyncEnumerable<'T> * bool -> System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<'T>
<Extension()>
Public Function ConfigureAwait(Of T) (source As IAsyncEnumerable(Of T), continueOnCapturedContext As Boolean) As ConfiguredCancelableAsyncEnumerable(Of T)
Típusparaméterek
- T
Az iterálás alatt álló objektumok típusa.
Paraméterek
- source
- IAsyncEnumerable<T>
Az iterated forrás enumerálható.
- continueOnCapturedContext
- Boolean
Rögzítendő és visszaállítható-e az aktuális környezetbe.
Válaszok
A konfigurált számbavétel.