Execute() public method

public Execute ( DeleteTagRequest request, Action responseCallback, Action exceptionCallback ) : void
request DeleteTagRequest
responseCallback Action
exceptionCallback Action
return void
        public void Tags()
        {
            var service = new DeleteTagService
                              {
                                  RequestBuilder = RequestBuilderHelper.Build()
                              };

            var helper = new AsyncTestHelper();
            var request = new DeleteTagRequest {Tag = "myTag"};
            service.Execute(request, response => helper.Callback(null), helper.HandleException);
            helper.Wait();
        }
Ejemplo n.º 2
0
 public void Multiple()
 {
     var service = new DeleteTagService
                       {
                           RequestBuilder = ServerRequestBuilder.Instance
                       };
     var request = new DeleteTagRequest
                       {
                           Tag = "tag1"
                       };
     service.Execute(request, response => Debug.WriteLine("Deleted"), ExceptionHandler.Handle);
 }