public object Any(UpdateShippingAddress request)
        {
            //Update the shipping address in the local db

            //send the response
            var response = new ShippingAddressUpdated
                {
                    OrderIdInt = request.OrderIdInt
                };

            return response;
        }
예제 #2
0
            public void SendMessage()
            {
                var message = new ShippingAddressUpdated
                    {
                        OrderIdInt = "12345678",
                        FirstName = "Ken"
                    };

                using (var mqClient = _mqHost.CreateMessageQueueClient())
                {
                    mqClient.Publish(message);
                }
            }