Exemplo n.º 1
0
        public void OrderPlaced(Order order)
        {
            logger.Info("Order is pushed to basket | OrderId : " + order.OrderId);

            logger.Info("Order is published to subscribers | OrderId : " + order.OrderId);
            //Invoke Action
            OnOrderReceived?.Invoke(order);
        }
Exemplo n.º 2
0
 private void OnDisable()
 {
     onOrderReceived.RemoveAllListeners();
     onOrderReceived = null;
 }
Exemplo n.º 3
0
 private void OnEnable()
 {
     onOrderReceived = new OnOrderReceived();
 }