diff --git a/documentation/docs/outbox.md b/documentation/docs/outbox.md index ac923a82..23ad9965 100644 --- a/documentation/docs/outbox.md +++ b/documentation/docs/outbox.md @@ -18,14 +18,26 @@ builder.Services.AddTransactionalBox(x => }, settings => settings.ServiceId = "ServiceName"); ``` +### Outbox Message -### Outbox Definition +```csharp +public class CreateCustomerCommandMessage : OutboxMessage +{ + public Guid Id { get; init; } + + public string FirstName { get; init; } + + public string LastName { get; init; } + public int Age { get; init; } +} +``` + +### Outbox Definition :::info You do not need to define a outbox definition for each message. By default, the message will be published because receiver is not indicated. ::: - ```csharp internal class CreateCustomerCommandMessageDefinition : OutboxDefinition { @@ -37,6 +49,21 @@ internal class CreateCustomerCommandMessageDefinition : OutboxDefinition