Table of Contents

Method Add

Namespace
Ratatoskr.EfCore
Assembly
Ratatoskr.EfCore.dll

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

message TMessage

The message to send

properties MessageProperties

Optional message properties

Type Parameters

TMessage

The 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

message object
properties MessageProperties