public void UnsubscribeEvent(FoodAddEvent evento, IEventTokenService service) { var token = service.GetFoodAddEventToken(); evento.Unsubscribe(token); }
public void SubscribeEvent(FoodAddEvent evento, IEventTokenService service) { var token = evento.Subscribe(AddImage); tokenService.SetFoodAddEventToken(token); }