Ejemplo n.º 1
0
        /// <summary>
        /// Trigger method called to raise the <see cref="OrderIsProcessing"/> event
        /// </summary>
        protected virtual void OnOrderIsProcessing(OrderDTO orderDTO, ICollection <OrderItemDTO> items)
        {
            //null test, without making a copy while keeping thread-safety
            OrderProcessingEventArgs args = new OrderProcessingEventArgs()
            {
                Order = orderDTO, Items = items
            };

            OrderIsProcessing?.Invoke(this, args);
        }
Ejemplo n.º 2
0
 private static void Op_OrderProcessingChanged(object sender, OrderProcessingEventArgs e)
 {
     //Console.WriteLine($">>>{e.Order.Id} - {e.OldStatus} - {e.NewStatus} <<<");
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Method for handling order processing events
        /// </summary>
        protected void NewOrderProcessing(object sender, OrderProcessingEventArgs args)
        {
            //maybe this method would send out emails notifying the customer that the order is being processed

            //may also notify the warehouse that an order is ready to have inventory pulled
        }