WinPhoneClient.Intf.WindowsPhonePushProviderService_AsyncProxy.EndRegisterDevice C# (CSharp) Method

EndRegisterDevice() public method

public EndRegisterDevice ( System @__AsyncResult ) : void
@__AsyncResult System
return void
        public virtual void EndRegisterDevice(System.IAsyncResult @__AsyncResult)
        {
            RemObjects.SDK.IMessage @__LocalMessage = ((RemObjects.SDK.IClientAsyncResult)(@__AsyncResult)).Message;
            @__LocalMessage.Clear();
        }

Usage Example

Ejemplo n.º 1
0
 private void RegisterOnServer(String notificationUri)
 {
     var lService = new WindowsPhonePushProviderService_AsyncProxy(message, clientChannel);
     lService.BeginRegisterDevice(deviceId.ToString(), notificationUri,
                                  Environment.OSVersion.Version.ToString(), "WinPhoneClient",
                                  ar =>
                                  {
                                      try
                                      {
                                          lService.EndRegisterDevice(ar);
                                          Log("Channel URI sent to server\n");
                                      }
                                      catch (Exception ex)
                                      {
                                          Log("Exception during URI update on the server:\n{0}", ex.Message);
                                      }
                                  }, null);
 }