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

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