Microsoft.AspNet.SignalR.Client.Transports.LongPollingTransport.LostConnection C# (CSharp) Method

LostConnection() public method

Aborts the currently active polling request thereby forcing a reconnect.
public LostConnection ( IConnection connection ) : void
connection IConnection
return void
        public override void LostConnection(IConnection connection)
        {
            if (connection.EnsureReconnecting())
            {
                lock (_stopLock)
                {
                    if (_currentRequest != null)
                    {
                        _currentRequest.Abort();
                    }
                }
            }
        }