Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 691 Bytes

modules-active-time-range.md

File metadata and controls

23 lines (19 loc) · 691 Bytes
title layout
Active Time Range Module
api

Active Time Range Module

The ActiveTimeRangeModule may be found in the Shuttle.ESB.Modules assembly. The module will attach the ActiveTimeRangeObserver to the OnPipelineStarting event of all pipelines except the StartupPipeline and abort the pipeline if the current time is not within the active time range.

  <appSettings>
    <add key="ActiveFromTime" value="*"/>
    <add key="ActiveToTime" value="*"/>
  </appSettings>

The default value of * indicates the whole day and your pipelines will never be stopped.

	var bus = ServiceBus
		.Create()
		.AddModule(new ActiveTimeRangeModule())
		.Start();