DisconnectDelaySeconds

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy >

DisconnectDelaySeconds

Previous page Return to chapter overview Next page

Definition

Determines the amount of time a disconnect would have to last before connection loss handling takes action.

 

Property Value

An int value represents the time required for a disconnect to last before connection loss handling actions will occur.  Default value is 10.

 

Syntax

DisconnectDelaySeconds

 

 

 

Examples

ns

protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        // Disconnect has to be at least 10 seconds
        DisconnectDelaySeconds = 10;
    }
}