예제 #1
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);
    }
예제 #2
0
        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();
        }