https://github.com/shuttle/shuttle.esb.sql.idempotence
Sql-based implementation of IIdempotenceService interface for use with Shuttle.Esb.
https://github.com/shuttle/shuttle.esb.sql.idempotence
Last synced: 20 days ago
JSON representation
Sql-based implementation of IIdempotenceService interface for use with Shuttle.Esb.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.esb.sql.idempotence
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2017-03-12T18:53:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T14:11:18.000Z (about 1 year ago)
- Last Synced: 2025-03-23T22:14:31.425Z (12 months ago)
- Language: C#
- Size: 1.87 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQL
```
PM> Install-Package Shuttle.Esb.Sql.Idempotence
```
Contains a sql-based `IIdempotenceService` implementation.
## Supported providers
Currently only the `Microsoft.Data.SqlClient` provider name is supported but this can easily be extended. Feel free to give it a bash and please send a pull request if you *do* go this route. You are welcome to create an issue and assistance will be provided where able.
## Configuration
```c#
services
.AddDataAccess(builder =>
{
builder.AddConnectionString("Idempotence", "Microsoft.Data.SqlClient");
})
.AddServiceBus(builder =>
{
configuration.GetSection(ServiceBusOptions.SectionName)
.Bind(builder.Options);
})
.AddIdempotence()
.AddSqlIdempotence(builder =>
{
// defaults
builder.Options.ConnectionStringName = "Idempotence";
builder.Options.Schema = "dbo";
builder.UseSqlServer();
});
```
And the JSON configuration structure:
```json
{
"Shuttle": {
"ServiceBus": {
"Sql": {
"Idempotence": {
"ConnectionStringName": "connection-string-name",
"Schema": "dbo"
}
}
}
}
}
```
## Options
| Option | Default | Description |
| --- | --- | --- |
| `ConnectionStringName` | Idempotence | The name of the `ConnectionString` to use to connect to the idempotence store. |
| `Schema` | dbo | The name of the database schema to use when accessing the idempotence tables. |