Skip to content

The ActiveTimeRange extension aborts pipeline processing when the current date is not within a given time range.

License

Notifications You must be signed in to change notification settings

Shuttle/Shuttle.Esb.ActiveTimeRange

Repository files navigation

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

services.AddActiveTimeRange(builder => {
	builder.Options.ActiveFromTime = "10:00";
	builder.Options.ActiveToTime = "14:00";
});

The default JSON settings structure is as follows:

{
  "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.

About

The ActiveTimeRange extension aborts pipeline processing when the current date is not within a given time range.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages