public void SendPriceUpdate(UpdatedPricesMessage updatedPricelist) { var host = new DefaultHost(); host.Start <ClientBootStrapper>(); var bus = host.Bus as IServiceBus; bus.Send(updatedPricelist); }
public void Consume(UpdatedPricesMessage message) { if (message.UpdatedPricesList.Count != 0) { foreach (var up in message.UpdatedPricesList) { Hub.Clients.Group("Clients").updatePrice(up); } } }