AdvanceTimeSettings Constructor
Initializes a new instance of the AdvanceTimeSettings class which specifies whether application time is advanced based on its own input, from another input, or both.
Namespace: Microsoft.ComplexEventProcessing
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public AdvanceTimeSettings(
AdvanceTimeGenerationSettings generationSettings,
AdvanceTimeImportSettings importSettings,
AdvanceTimePolicy policy
)
Parameters
- generationSettings
Type: Microsoft.ComplexEventProcessing.AdvanceTimeGenerationSettings
Defines how and when the engine should advance application time. If null, the engine does not automatically advance application time.
- importSettings
Type: Microsoft.ComplexEventProcessing.AdvanceTimeImportSettings
Defines other input streams as sources of application time. If null, application time is not imported from another source.
- policy
Type: Microsoft.ComplexEventProcessing.AdvanceTimePolicy
Defines the policy for how the engine should deal with events that violate the current application time.
Remarks
For more information, see Advancing Application Time.
Examples
public AdapterAdvanceTimeSettings DeclareAdvanceTimeProperties<TPayload>(MyInputConfig configInfo, EventShape eventShape)
{
var atgs = new AdvanceTimeGenerationSettings(10, TimeSpan.FromSeconds(0), true);
var ats = new AdapterAdvanceTimeSettings(atgs, AdvanceTimePolicy.Drop);
return ats;
}