IWebPeriodicServiceAddAsync - метод
Добавить указанных работников.
Пространство имён: Tessa.Web.ServicesСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
ValueTask AddAsync(
IEnumerable<IPeriodicWorker> workers,
IPeriodicWorkerDependencies? workerDependencies = null,
CancellationToken cancellationToken = default
)
Function AddAsync (
workers As IEnumerable(Of IPeriodicWorker),
Optional workerDependencies As IPeriodicWorkerDependencies = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
ValueTask AddAsync(
IEnumerable<IPeriodicWorker^>^ workers,
IPeriodicWorkerDependencies^ workerDependencies = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract AddAsync :
workers : IEnumerable<IPeriodicWorker> *
?workerDependencies : IPeriodicWorkerDependencies *
?cancellationToken : CancellationToken
(* Defaults:
let _workerDependencies = defaultArg workerDependencies null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- workers IEnumerableIPeriodicWorker
- Перечень работников.
- workerDependencies IPeriodicWorkerDependencies (Optional)
- Зависимости для работников или , если зависимости отсутствуют.
- cancellationToken CancellationToken (Optional)
- Объект для отмены асинхронной операции.
ValueTaskАсинхронная задача.