Condividi tramite


InvokeDigitalTwinCommandOptions.ConnectTimeout Property

Definition

The amount of time given to the service to connect to the device.

public TimeSpan? ConnectTimeout { get; set; }
member this.ConnectTimeout : Nullable<TimeSpan> with get, set
Public Property ConnectTimeout As Nullable(Of TimeSpan)

Property Value

Remarks

A timeout may occur if this value is set to zero and the target device is not connected to the cloud. If the value is greater than zero, it may also occur if the cloud fails to deliver the request to the target device.

This value is propagated to the service in terms of seconds, so this value does not have a level of precision below seconds. For example, a value of TimeSpan.FromMilliseconds(500) will be interpreted as 0 seconds (using ConnectTimeout.TotalSeconds).

Applies to