コード例 #1
0
 public void Simple()
 {
     var service = new GetRegistrationService
         {
             RequestBuilder = ServerRequestBuilder.Instance
         };
     var request = new GetRegistrationRequest {PushId = "AndroidPushId"};
     service.Execute(request, Callback, ExceptionHandler.Handle);
 }
コード例 #2
0
 public void Simple()
 {
     var service = new GetRegistrationService
                       {
                           RequestBuilder = RequestBuilderHelper.Build()
                       };
     var helper = new AsyncTestHelper<GetRegistrationResponse>();
     var request = new GetRegistrationRequest
                       {
                           PushId = RemoteSettings.AndroidPushId
                       };
     service.Execute(request, helper.Callback, helper.HandleException);
     helper.Wait();
 }