protected void HubConnectionStateChanged(IStateChangeWrapped stateChange)
        {
            switch (stateChange.NewState)
            {
            case ConnectionStateWrapped.Connected:
                IsConnected  = true;
                IsConnecting = false;
                UpdateIsAuthorized(true);
                OnNetworkStateChanged(new NetworkStateEventArgs(NetworkState.Offline, NetworkState.Online));
                break;

            case ConnectionStateWrapped.Connecting:
            case ConnectionStateWrapped.Reconnecting:
                IsConnected  = false;
                IsConnecting = true;
                UpdateIsAuthorized(false);
                OnNetworkStateChanged(new NetworkStateEventArgs(NetworkState.Online, NetworkState.Offline));
                break;

            case ConnectionStateWrapped.Disconnected:
                OnNetworkStateChanged(new NetworkStateEventArgs(NetworkState.Online, NetworkState.Offline));
                HasDisconnected();
                break;
            }
        }
 public void CallHubConnectionChanged(IStateChangeWrapped stateChange)
 {
     HubConnectionStateChanged(stateChange);
 }
Exemplo n.º 3
0
 protected void HubConnectionStateChanged(IStateChangeWrapped stateChange)
 {
     switch (stateChange.NewState)
     {
     }
 }
Exemplo n.º 4
0
        protected void HubConnectionStateChanged(IStateChangeWrapped stateChange)
        {
            switch (stateChange.NewState)
            {

            }
        }