Exemplo n.º 1
0
 private void ConnectionOnStateChanged(StateChange stateChange)
 {
     _log.Debug("Sos Online: " + stateChange.NewState);
     if (stateChange.NewState == ConnectionState.Connected)
         InvokeOnSosOnlineStatusChange("Connected");
     if (stateChange.NewState == ConnectionState.Disconnected)
         InvokeOnSosOnlineStatusChange("Disconnected");
     if (stateChange.NewState == ConnectionState.Reconnecting)
         InvokeOnSosOnlineStatusChange("Reconnecting");
     if (stateChange.NewState == ConnectionState.Connecting)
         InvokeOnSosOnlineStatusChange("Connecting");
 }
Exemplo n.º 2
0
 private static void OnConnectionStateChanged(StateChange obj)
 {
     Console.WriteLine(obj.NewState.ToString());
 }