Beispiel #1
0
        public void Handle(ProductRemovedEvent handle)
        {
            IHubContext ctx = GlobalHost.ConnectionManager.GetHubContext <SignalRHub>();

            ctx.Clients.All.broadcastMessage(String.Format("Product {0} has been removed succesfully",
                                                           handle.Product.Name));
        }
Beispiel #2
0
 public void Handle(ProductRemovedEvent handle)
 {
     LogFactory.Logger.Info("Product {0} removed", handle.Product.Name);
 }