NinjaScript > Language Reference > Strategy >

ExitOnCloseSeconds

Print this Topic Previous pageReturn to chapter overviewNext page

Definition

The number of seconds before the actual session end time that the "ExitOnClose" function will trigger. This property can be set programatically in the Initialize() method or be driven by the UI at run time.

 

Note: This property is a real-time only property.

 

Property Value

An int value representing the number of seconds.

 

Syntax

ExitOnCloseSeconds

 

 

Examples

protected override void Initialize()
{
    // Triggers the exit on close function 30 seconds prior to session end
    ExitOnClose = true;
    ExitOnCloseSeconds = 30;
}