Exemple #1
0
        public static void Disconnect()
        {
            App.IsConnected = false;

            try
            {
                if (!string.IsNullOrEmpty(App.ClientInfo.Uri))
                {
                    PushServiceClient.Disconnect(App.ClientInfo.Uri);
                }
            }
            catch { };

            try{
                NotificationProvider.Disconnect();
            }
            catch { };

            try{
                App.ClientInfo.Uri = null;
                App.SaveClientInfo();
            }
            catch { };
        }