コード例 #1
0
partial         void HandleImplementation(PlaceOrderCommand message)
        {
            // TODO: PlaceOrderCommandHandler: Add code to handle the PlaceOrderCommand message.
            Console.WriteLine("Payments received " + message.GetType().Name);
            //var createInvoiceCommand = new Example1.Internal.Commands.Payments.CreateInvoiceCommand();
            //Bus.Send(createInvoiceCommand);
        }
コード例 #2
0
partial         void ConfigurePlaceOrderCommand(PlaceOrderCommand message);
コード例 #3
0
 public void Send(PlaceOrderCommand message)
 {
     ConfigurePlaceOrderCommand(message);
     Bus.Send(message);
 }
コード例 #4
0
 public string SendMessagePlaceOrderCommand(PlaceOrderCommand PlaceOrderCommand)
 {
     ConfigurePlaceOrderCommand(PlaceOrderCommand);
     PlaceOrderCommandSender.Send(PlaceOrderCommand);
     return "<p> PlaceOrderCommand command sent</p>";
 }