Click or drag to resize

IConnectionProviderWaitForConnection Method

Block and wait until the connection is established.

Namespace: Sportradar.SDK.Common.Interfaces
Assembly: Common (in Common.dll) Version: 2.28.0.0
Syntax
C#
bool WaitForConnection()

Return Value

Boolean
true if the connection is established; false (should rarely happen) in case of a race-condition or when wait_time times out
Remarks
The method might return true and the connection can get broken right after that, so do not assume after that method we are for sure in a "connected" state, it might have been just a temporary state.
See Also