Table of Contents

Interface IBackgroundWorkProcessor

Namespace
Signal.Application.Background
Assembly
Signal.Application.dll

Runs queued background work; hosted by AddSignal. Replace it to process work elsewhere.

public interface IBackgroundWorkProcessor

Methods

RunAsync(CancellationToken)

Processes queued work until stoppingToken is cancelled.

Task RunAsync(CancellationToken stoppingToken)

Parameters

stoppingToken CancellationToken

Signals shutdown; also passed to running work.

Returns

Task

A task that completes when processing stopped.