/// <summary> /// Cancels the order. /// </summary> /// <param name="order">The order.</param> public override void CancelOrder(Order order) { ServiceClientArgs args = this.serviceClientArgsFactory.GetServiceClientArgs(); using (OrderProcessorServiceClient client = new OrderProcessorServiceClient()) { client.CancelOrder(order.OrderId, args); } }
/// <summary> /// Cancels the order. /// </summary> /// <param name="order">The order.</param> public override void CancelOrder(Order order) { ServiceClientArgs args = this.serviceClientArgsFactory.GetServiceClientArgs(); using (OrderProcessorServiceClient client = new OrderProcessorServiceClient()) { client.CancelOrder(order.OrderId, args); } }