WebPeriodicServiceAddAsync - метод
Добавить указанных работников.
Пространство имён: Tessa.Web.ServicesСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
public ValueTask AddAsync(
IEnumerable<IPeriodicWorker> workers,
IPeriodicWorkerDependencies? workerDependencies = null,
CancellationToken cancellationToken = default
)
Public Function AddAsync (
workers As IEnumerable(Of IPeriodicWorker),
Optional workerDependencies As IPeriodicWorkerDependencies = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
virtual ValueTask AddAsync(
IEnumerable<IPeriodicWorker^>^ workers,
IPeriodicWorkerDependencies^ workerDependencies = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract AddAsync :
workers : IEnumerable<IPeriodicWorker> *
?workerDependencies : IPeriodicWorkerDependencies *
?cancellationToken : CancellationToken
(* Defaults:
let _workerDependencies = defaultArg workerDependencies null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
override 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Асинхронная задача.
IWebPeriodicServiceAddAsync(IEnumerableIPeriodicWorker, IPeriodicWorkerDependencies, CancellationToken)