Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

The ActiveTimeRange module for Shuttle.Esb 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.Module.ActiveTimeRange

Repository files navigation

Active Time Range

PM> Install-Package Shuttle.Esb.Module.ActiveTimeRange

The ActiveTimeRange module for Shuttle.Esb aborts pipeline processing when the current date is not within a given time range.

Configuration

services.AddActiveTimeRangeModule(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 module for Shuttle.Esb aborts pipeline processing when the current date is not within a given time range.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages