21.178. Class PostProcessor

Namespace: ArmoniK.Core.Common.Pollster
Assembly: ArmoniK.Core.Common.dll

public class PostProcessor : BackgroundService, IHostedService, IDisposable

21.178.1. Inheritance

objectBackgroundServicePostProcessor

21.178.2. Implements

IHostedService, IDisposable

21.178.3. Inherited Members

BackgroundService.Dispose(), BackgroundService.ExecuteAsync(CancellationToken), BackgroundService.StartAsync(CancellationToken), BackgroundService.StopAsync(CancellationToken), BackgroundService.ExecuteTask, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

21.178.4. Constructors

21.178.4.1. PostProcessor(PostProcessingTaskQueue, ExceptionManager, ILogger<PostProcessor>)

Initializes a new instance of the class.

public PostProcessor(PostProcessingTaskQueue postProcessingTaskQueue, ExceptionManager exceptionManager, ILogger<PostProcessor> logger)

21.178.4.1.1. Parameters

postProcessingTaskQueue PostProcessingTaskQueue

The queue containing tasks that need post-processing.

exceptionManager ExceptionManager

The manager handling exceptions and cancellation.

logger ILogger<PostProcessor>

The logger for this class.

21.178.5. Methods

21.178.5.1. ExecuteAsync(CancellationToken)

This method is called when the starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.

protected override Task ExecuteAsync(CancellationToken stoppingToken)

21.178.5.1.1. Parameters

stoppingToken CancellationToken

Triggered when is called.

21.178.5.1.2. Returns

Task

A that represents the long running operations.

21.178.5.1.3. Remarks

See Worker Services in .NET for implementation guidelines.