Table of Contents

Interface IEventPublisher

Namespace
Virtufin.Core.Messaging
Assembly
Virtufin.Core.dll

Publishes a single event to a Dapr-compatible topic. Implementations may wrap DaprClient.PublishEventAsync, an in-memory bus for tests, or any other transport.

public interface IEventPublisher
Extension Methods

Methods

PublishAsync(Topic, IEventEnvelope, object)

Publish an event with its envelope to topic.

Task PublishAsync(Topic topic, IEventEnvelope envelope, object payload)

Parameters

topic Topic

Destination topic.

envelope IEventEnvelope

Event envelope carrying routing/timing metadata.

payload object

Event payload.

Returns

Task