Exemplo n.º 1
0
        private void OnAuthenticationSucceded(SignalR.Authentication.IAuthenticationProvider provider)
        {
            HTTPManager.Logger.Verbose("HubConnection", "OnAuthenticationSucceded");

            this.AuthenticationProvider.OnAuthenticationSucceded -= OnAuthenticationSucceded;
            this.AuthenticationProvider.OnAuthenticationFailed   -= OnAuthenticationFailed;

            ConnectImpl();
        }
Exemplo n.º 2
0
        private void OnAuthenticationFailed(SignalR.Authentication.IAuthenticationProvider provider, string reason)
        {
            HTTPManager.Logger.Error("HubConnection", "OnAuthenticationFailed: " + reason);

            this.AuthenticationProvider.OnAuthenticationSucceded -= OnAuthenticationSucceded;
            this.AuthenticationProvider.OnAuthenticationFailed   -= OnAuthenticationFailed;

            this.State = ConnectionStates.Closed;
            if (this.OnError != null)
            {
                this.OnError(this, reason);
            }
        }