public ActionResult FoodReady([FromBody] FoodReady foodReady) { IeventBus.PublishEvent("foodReady", foodReady); return(new JsonResult(foodReady)); }
public void NotifyReady(IFood food) { FoodReady?.Invoke(this, new FoodReadyEventArgs(food)); }
protected virtual void OnFoodReadyToBeServed() { FoodReady?.Invoke(this, EventArgs.Empty); }