Show / Hide Table of Contents

Interface AsyncConsumerOf<TEvent>

Represents a consumer of a specific type of event.

Namespace: IRM.Messaging.Subscriptions
Assembly: IRM.dll
Syntax
public interface AsyncConsumerOf<in TEvent>
    where TEvent : IEvent
Type Parameters
TEvent

The type of event to consume.

Methods

ConsumeAsync(TEvent, CancellationToken)

Called with the event to consume.

Declaration
Task ConsumeAsync(TEvent event, CancellationToken cancellationToken = default(CancellationToken))
Parameters
TEvent event

The event to process.

System.Threading.CancellationToken cancellationToken

The cancellation instruction.

Returns
System.Threading.Tasks.Task

A task representing the asynchronous operation.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX