Ejemplo n.º 1
0
        private void OnError(object sender, AnycastEventsBase.ErrorEventArgs ea)
        {
            if (_context.Client != sender)
            {
                return;
            }

            if (ea.Exception is ConnectServerException)
            {
                if (_firstConnectServer)
                {
                    _firstConnectServer = false;
                    if (this.FirstConnectError != null)
                    {
                        this.FirstConnectError(this, ea);
                    }
                }
                return;
            }

            if (ea.Exception is ReconnectFailedException)
            {
                if (this.LastConnectError != null)
                {
                    this.LastConnectError(this, ea);
                }
                return;
            }

            if (this.Error != null)
            {
                this.Error(this, ea);
            }
        }
Ejemplo n.º 2
0
 private void OnError(object sender, AnycastEventsBase.ErrorEventArgs ea)
 {
 }
Ejemplo n.º 3
0
 private void OnLastConnectError(object sender, AnycastEventsBase.ErrorEventArgs ea)
 {
     _single.Set();
 }