private void Apply(CustomerEmailBlacklisted @event) { _emailAddress.Blacklist(); }
public void Handle(CustomerEmailBlacklisted message) { var context = GlobalHost.ConnectionManager.GetHubContext <CustomerHub>(); context.Clients.All.customerBlacklisted(message.Id); }