Method Add
Add<TMessage>(TMessage, MessageProperties?)
Stages a message to be sent when SaveChanges is called. The message will be persisted to the outbox table and sent by the background processor.
public void Add<TMessage>(TMessage message, MessageProperties? properties = null) where TMessage : notnull
Parameters
messageTMessageThe message to send
propertiesMessagePropertiesOptional message properties
Type Parameters
TMessageThe message type (must be registered in configuration)
Add(object, MessageProperties?)
Stages a message to be sent when SaveChanges is called.
public void Add(object message, MessageProperties? properties = null)
Parameters
messageobjectpropertiesMessageProperties