An open API service indexing awesome lists of open source software.

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.

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.