Пример #1
0
 private void Apply(CustomerEmailBlacklisted @event)
 {
     _emailAddress.Blacklist();
 }
Пример #2
0
        public void Handle(CustomerEmailBlacklisted message)
        {
            var context = GlobalHost.ConnectionManager.GetHubContext <CustomerHub>();

            context.Clients.All.customerBlacklisted(message.Id);
        }