Show / Hide Table of Contents

Class TrackEventSender

Background service to process UI event tracking and dispatch

Inheritance
object
BackgroundService
AsyncQueueProcessor<IAsyncQueue<TrackEventItem>, TrackEventItem>
TrackEventSender
Implements
IDisposable
IHostedService
Inherited Members
AsyncQueueProcessor<IAsyncQueue<TrackEventItem>, TrackEventItem>._queue
AsyncQueueProcessor<IAsyncQueue<TrackEventItem>, TrackEventItem>.ExecuteAsync(CancellationToken)
AsyncQueueProcessor<IAsyncQueue<TrackEventItem>, TrackEventItem>.OuterProcessItemAsync(IAsyncQueueProcessItemContext<TrackEventItem>, CancellationToken)
AsyncQueueProcessor<IAsyncQueue<TrackEventItem>, TrackEventItem>.ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEventItem>, CancellationToken)
BackgroundService.ExecuteAsync(CancellationToken)
BackgroundService.StartAsync(CancellationToken)
BackgroundService.StopAsync(CancellationToken)
BackgroundService.Dispose()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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
Overrides
AsyncQueueProcessor<IAsyncQueue<TrackEventItem>, TrackEventItem>.ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEventItem>, CancellationToken)

Implements

IDisposable
IHostedService

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top