Execute() public method

public Execute ( AddRegistrationRequest registrationRequest, Action responseCallback, Action exceptionCallback ) : void
registrationRequest AddRegistrationRequest
responseCallback Action
exceptionCallback Action
return void
 public void Simple()
 {
     var service = new AddRegistrationService
                       {
                           RequestBuilder = ServerRequestBuilder.Instance
                       };
     var registration = new AddRegistrationRequest
                            {
                                PushId = "AndroidPushId",
                                Tags = new List<string> {"MyTag"},
                                Alias = "MyAlias"
                            };
     service.Execute(registration, response => Debug.WriteLine("Success"), ExceptionHandler.Handle);
 }
        public void Tags()
        {
            var service = new AddRegistrationService
                              {
                                  RequestBuilder = RequestBuilderHelper.Build()
                              };
            var registration = new AddRegistrationRequest
                                   {
                                       PushId = RemoteSettings.AndroidPushId,
                                       Tags = new List<string> {"bangladesh"}
                                   };

            var asyncTestHelper = new AsyncTestHelper();
            service.Execute(registration, x => asyncTestHelper.Callback(null), asyncTestHelper.HandleException);
            asyncTestHelper.Wait();
        }