https://github.com/shuttle/shuttle.esb.activetimerange
The ActiveTimeRange extension aborts pipeline processing when the current date is not within a given time range.
https://github.com/shuttle/shuttle.esb.activetimerange
Last synced: about 1 month ago
JSON representation
The ActiveTimeRange extension aborts pipeline processing when the current date is not within a given time range.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.esb.activetimerange
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2024-02-04T11:01:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-02T14:06:08.000Z (3 months ago)
- Last Synced: 2025-03-23T22:14:28.184Z (2 months ago)
- Language: C#
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Active Time Range
```
PM> Install-Package Shuttle.Esb.ActiveTimeRange
```The ActiveTimeRange module for Shuttle.Esb aborts pipeline processing when the current date is not within a given time range.
## Configuration
```c#
services.AddActiveTimeRange(builder =>
{
builder.Options.ActiveFromTime = "10:00";
builder.Options.ActiveToTime = "14:00";
});
```The default JSON settings structure is as follows:
```json
{
"Shuttle": {
"Modules": {
"ActiveTimeRange": {
"ActiveFromTime": "8:00",
"ActiveToTime": "23:00"
}
}
}
}
```The default value of "\*" ignores the value. If both `from` and `to` are specified as "\*" no pipeline will be aborted.