Class TrackEventSender
Background service to process UI event tracking and dispatch
Inheritance
TrackEventSender
Inherited Members
Namespace: SuperOffice.Util
Assembly: SoDataBase.dll
Syntax
public class TrackEventSender : AsyncQueueProcessor<IAsyncQueue<TrackEventItem>, TrackEventItem>, IDisposable, IHostedService
Constructors
TrackEventSender(IOptions<OnlineConfiguration>, ILogger<TrackEventSender>, IAsyncQueue<TrackEventItem>)
Background service to process UI event tracking and dispatch
Declaration
public TrackEventSender(IOptions<ConfigFile.OnlineConfiguration> options, ILogger<TrackEventSender> logger, IAsyncQueue<TrackEventItem> queue)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions<ConfigFile.OnlineConfiguration> | options | |
| ILogger<TrackEventSender> | logger | |
| IAsyncQueue<TrackEventItem> | queue |
Methods
ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEventItem>, CancellationToken)
Process an item from the queue
Declaration
protected override Task ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEventItem> context, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IAsyncQueueProcessItemContext<TrackEventItem> | context | Context of item to be processed |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |