Show / Hide Table of Contents

Class TrackEventSender

Inheritance
object
BackgroundService
AsyncQueueProcessor<IAsyncQueue<TrackEvent>, TrackEvent>
TrackEventSender
Implements
IDisposable
IHostedService
Inherited Members
AsyncQueueProcessor<IAsyncQueue<TrackEvent>, TrackEvent>._queue
AsyncQueueProcessor<IAsyncQueue<TrackEvent>, TrackEvent>.ExecuteAsync(CancellationToken)
AsyncQueueProcessor<IAsyncQueue<TrackEvent>, TrackEvent>.ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEvent>, 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<TrackEvent>, TrackEvent>, IDisposable, IHostedService

Constructors

TrackEventSender(IOptions<TrackEventConfiguration>, ILogger<TrackEventSender>, IAsyncQueue<TrackEvent>)

Declaration
public TrackEventSender(IOptions<TrackEventConfiguration> options, ILogger<TrackEventSender> logger, IAsyncQueue<TrackEvent> queue)
Parameters
Type Name Description
IOptions<TrackEventConfiguration> options
ILogger<TrackEventSender> logger
IAsyncQueue<TrackEvent> queue

Methods

ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEvent>, CancellationToken)

Process an item from the queue

Declaration
protected override Task ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEvent> context, CancellationToken cancellationToken)
Parameters
Type Name Description
IAsyncQueueProcessItemContext<TrackEvent> context

Context of item to be processed

CancellationToken cancellationToken
Returns
Type Description
Task
Overrides
AsyncQueueProcessor<IAsyncQueue<TrackEvent>, TrackEvent>.ProcessItemAsync(IAsyncQueueProcessItemContext<TrackEvent>, 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