public void CancelOrder(int order, string clientId, bool debug)
        {
            var command = new CancelOrder
            {
                ClientId = clientId,
                OrderNumber = order
            };

            MvcApplication.Bus.SetMessageHeader(command, "Debug", debug.ToString());

            MvcApplication.Bus.Send(command);
        }
Beispiel #2
0
        public void CancelOrder(int orderNumber)
        {
            var command = new CancelOrder
            {
                ClientId = Context.ConnectionId,
                OrderNumber = orderNumber
            };

            MvcApplication.Bus.SetMessageHeader(command, "Debug", ((bool)Clients.Caller.debug).ToString());

            MvcApplication.Bus.Send(command);
        }