BeginUnregisterDevice() 공개 메소드

public BeginUnregisterDevice ( string deviceId, System @__Callback, object @__UserData ) : System.IAsyncResult
deviceId string
@__Callback System
@__UserData object
리턴 System.IAsyncResult
예제 #1
0
 private void UnregisterOnServer()
 {
     var lService = new WindowsPhonePushProviderService_AsyncProxy(message, clientChannel);
     lService.BeginUnregisterDevice(deviceId.ToString(),
                                  ar =>
                                  {
                                      try
                                      {
                                          lService.EndUnregisterDevice(ar);
                                          Log("Device unsubscribed from notifications.\n");
                                      }
                                      catch (Exception ex)
                                      {
                                          Log("Exception during unsivscribing.\n{0}", ex.Message);
                                      }
                                  }, null);
 }