Interface IMessagePublisher
Assembly: LemonEdge.Messaging.Core.dll
Syntax
public interface IMessagePublisher
Methods
InitializeAsync(CancellationToken)
Performs all tasks required to initialize this message publisher
Declaration
Task InitializeAsync(CancellationToken token = default)
Parameters
Returns
PublishAsync<T>(string, T, CancellationToken)
Publishes a message of type {T}
Declaration
Task PublishAsync<T>(string topicName, T message, CancellationToken token = default) where T : class
Parameters
Type |
Name |
Description |
string |
topicName |
The topic to which the message will be published
|
T |
message |
The message to publish
|
CancellationToken |
token |
|
Returns
Type Parameters
Extension Methods