Table of Contents

Interface IPublisher<TRequest>

Namespace
Savvyio.Messaging
Assembly
Savvyio.Core.dll

Defines a publisher/sender channel for interacting with other subsystems (out-process/inter-application) to be notified (e.g., made aware of something that has happened).

public interface IPublisher<in TRequest>
    where TRequest : IRequest

Type Parameters

TRequest

The type of the model to invoke on a handler.

Methods

PublishAsync(IMessage<TRequest>, Action<AsyncOptions>)

Publishes the specified message asynchronous using Publish-Subscribe Channel/Pub-Sub MEP.

Task PublishAsync(IMessage<TRequest> message, Action<AsyncOptions> setup = null)

Parameters

message IMessage<TRequest>

The message to publish.

setup Action<AsyncOptions>

The AsyncOptions which may be configured.

Returns

Task

A System.Threading.Tasks.Task that represents the asynchronous operation.