Interface IEventPublisher
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
Methods
PublishAsync(Topic, IEventEnvelope, object)
Publish an event with its envelope to topic.
Task PublishAsync(Topic topic, IEventEnvelope envelope, object payload)
Parameters
topicTopicDestination topic.
envelopeIEventEnvelopeEvent envelope carrying routing/timing metadata.
payloadobjectEvent payload.