Share via


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

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;
}

See Also

Reference

AdvanceTimeSettings Class

Microsoft.ComplexEventProcessing Namespace