Exemple #1
0
        public ActionResult FoodReady([FromBody] FoodReady foodReady)
        {
            IeventBus.PublishEvent("foodReady", foodReady);

            return(new JsonResult(foodReady));
        }
Exemple #2
0
 public void NotifyReady(IFood food)
 {
     FoodReady?.Invoke(this, new FoodReadyEventArgs(food));
 }
 protected virtual void OnFoodReadyToBeServed()
 {
     FoodReady?.Invoke(this, EventArgs.Empty);
 }