//
        // GET: /Products/
        public ActionResult Index()
        {
            var client = new MsgPackServiceClient(@"http://localhost:40147");
            Stopwatch duration = new Stopwatch();
            duration.Start();

            var products = client.Get<QueryResponse<List<ProductDto>>>("/api/products?pageNumber=1&pageSize=200");

            duration.Stop();
            return View(products.Results);
        }
Example #2
0
        public void Can_Send_MsgPack_request()
        {
            var client = new MsgPackServiceClient(ListeningOn);

            try
            {
                var response = client.Send <MsgPackEmail>(request);

                Assert.That(response.Equals(request));
            }
            catch (WebServiceException webEx)
            {
                Assert.Fail(webEx.Message);
            }
        }
        public void Can_Send_MsgPack_request()
        {
            var client = new MsgPackServiceClient(ListeningOn);

            try
            {
                var response = client.Send<MsgPackEmail>(request);

                Assert.That(response.Equals(request));
            }
            catch (WebServiceException webEx)
            {
                Assert.Fail(webEx.Message);
            }
        }