Table of Contents

ISubscriber<TRequest> Interface

Definition

Namespace
Savvyio.Messaging
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/Messaging/ISubscriber.cs

Defines a subscriber/receiver channel used by subsystems to subscribe to messages (typically events) to be made aware of something that has happened.

public interface ISubscriber<out TRequest> where TRequest : IRequest

Type Parameters

TRequest

The type of the model to invoke on a handler.

Methods

Name Description
SubscribeAsync(Func<IMessage<TRequest>, CancellationToken, Task>, Action<SubscribeAsyncOptions>)

Subscribe to one or more message(s) asynchronous using Publish-Subscribe Channel/Pub-Sub MEP.