https://github.com/shuttle/shuttle.esb.purgequeues
The PurgeQueues extension clears the specified queues on startup.
https://github.com/shuttle/shuttle.esb.purgequeues
Last synced: 4 months ago
JSON representation
The PurgeQueues extension clears the specified queues on startup.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.esb.purgequeues
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2024-02-05T17:49:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-18T10:14:29.000Z (4 months ago)
- Last Synced: 2025-01-18T11:23:14.015Z (4 months ago)
- Language: C#
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Purge Queues
```
PM> Install-Package Shuttle.Esb.PurgeQueues
```The PurgeQueues module for Shuttle.Esb clears the specified queues on startup.
The module will attach the `PurgeQueuesObserver` to the `OnAfterConfigure` event of the `StartupPipeline` and purges the configured queues if the relevant queue implementation has implemented the `IPurgeQueue` interface. If the relevant queue implementation has *not* implemented the `IPurgeQueue` interface the purge is ignore.
## Configuration
```c#
services.AddPurgeQueues(builder =>
{
builder.Options.Uris = new List
{
"scheme-a://configuration-name/queue-a",
"scheme-b://configuration-name/queue-b"
};
});
```The default JSON settings structure is as follows:
```json
{
"Shuttle": {
"Modules": {
"MessageForwarding": {
"Uris": [
"scheme-a://configuration-name/queue-a",
"scheme-b://configuration-name/queue-b"
]
}
}
}
}
```