BatchingLoggerProvider.IntervalAsync(TimeSpan, CancellationToken) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Poczekaj na daną wartość TimeSpan .
protected:
virtual System::Threading::Tasks::Task ^ IntervalAsync(TimeSpan interval, System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.Task IntervalAsync (TimeSpan interval, System.Threading.CancellationToken cancellationToken);
abstract member IntervalAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.IntervalAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function IntervalAsync (interval As TimeSpan, cancellationToken As CancellationToken) As Task
Parametry
- interval
- TimeSpan
Czas oczekiwania.
- cancellationToken
- CancellationToken
CancellationToken, Którego można użyć do anulowania opóźnienia.
Zwraca
, Task Która kończy się, gdy zakończyło się interval Niepowodzenie lub cancellationToken zostało anulowane.