void NotificationProvider_RegisterComplete(Uri uri) { if (uri != null) { ClientInfo.Uri = uri.AbsoluteUri; SaveClientInfo(); PushServiceClient.Connect(ClientInfo, "GroupChat"); Debug.WriteLine(uri.AbsoluteUri.ToString()); } else { if (ConnectFinished != null) { ConnectFinished(this, new AsyncCompletedEventArgs(new Exception("Notification server not found"), true, null)); } } }