Skip to content

Commit

Permalink
Updated readme for new service configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tbd-develop committed Jan 7, 2024
1 parent 452d118 commit 4372cad
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,32 @@ ServiceCollection.AddMediatorOutbox(configure =>
);
```


#### Processing Configuration

When using the background processing, you can configure process timeouts and whether exceptions should retry.

```csharp
ServiceCollection.AddMediatorOutbox(configure =>
configure
.UseSqlServerOutbox("connection string")
.WithBackgroundProcessing(x =>
x.WithSettings(s => {
s.Interval = TimeSpan.FromSeconds(5)
s.BackOffOnException = TimeSpan.FromSeconds(5);
s.MaximumBackOff = TimeSpan.FromSeconds(60);
s.ShutdownOnException = true;
}))
);
```

Defaults;

* Interval = 5 seconds
* BackOffOnException = 5 seconds
* MaximumBackOff = 60 seconds
* ShutdownOnException = false

#### Issues

* The SqlServer implementation is not yet complete. It is not yet possible to configure the table name
Expand Down

0 comments on commit 4372cad

Please sign in to comment.