Class ChaparBusOutboxExtensions
Extension overloads for controlling EF outbox save behavior per outgoing message.
Inheritance
ChaparBusOutboxExtensions
Assembly: Chapar.Outbox.EntityFrameworkCore.dll
Syntax
public static class ChaparBusOutboxExtensions
Methods
|
Edit this page
View Source
PublishAsync<TEvent>(IChaparBus, TEvent, OutboxSaveMode, IDictionary<string, object>?, CancellationToken)
Publishes an event with explicit EF outbox save behavior.
Declaration
public static Task PublishAsync<TEvent>(this IChaparBus bus, TEvent @event, OutboxSaveMode saveMode = OutboxSaveMode.Transactional, IDictionary<string, object>? headers = null, CancellationToken cancellationToken = default) where TEvent : class, IEvent
Parameters
Returns
Type Parameters
|
Edit this page
View Source
SendAsync<TCommand>(IChaparBus, TCommand, string, OutboxSaveMode, IDictionary<string, object>?, CancellationToken)
Sends a command with explicit EF outbox save behavior.
Declaration
public static Task SendAsync<TCommand>(this IChaparBus bus, TCommand command, string queueName, OutboxSaveMode saveMode = OutboxSaveMode.Transactional, IDictionary<string, object>? headers = null, CancellationToken cancellationToken = default) where TCommand : class, ICommand
Parameters
Returns
Type Parameters
| Name |
Description |
| TCommand |
|