Example #1
0
    public void Multiple()
    {
        var service = new CreateTagService
        {
            RequestBuilder = ServerRequestBuilder.Instance
        };
        var request = new CreateTagRequest {
            Tag = "tag1"
        };

        service.Execute(request, response => Debug.WriteLine("Success"), ExceptionHandler.Handle);
    }
        public void Tags()
        {
            var service = new CreateTagService
            {
                RequestBuilder = RequestBuilderHelper.Build()
            };

            var asyncTestHelper = new AsyncTestHelper();
            var request         = new CreateTagRequest {
                Tag = "myTag"
            };

            service.Execute(request, response => asyncTestHelper.Callback(null), asyncTestHelper.HandleException);
            asyncTestHelper.Wait();
        }