public Subscriber(IBus bus) { _bus = bus; _bus.AddEndPoint(x => x .Exchange("publisher", ExchangeType.fanout) .QueueName("subscriber") .Durable() .PersistentDelivery()); }
public ChatService(IMessageGateway messageGateway, IBus bus) { _messageGateway = messageGateway; _bus = bus; _bus.AddEndPoint(x => x.Exchange("client", ExchangeType.fanout)); }
public WarrenService(Bridge bridge, IBus bus) { _bridge = bridge; _bus = bus; _bus.AddEndPoint(x => x.Exchange("client", ExchangeType.fanout)); }
public Publisher(IBus bus) { _bus = bus; _bus.AddEndPoint(x => x.Exchange("publisher", ExchangeType.fanout).Durable().PersistentDelivery()); }
public Demo(ILogger<Demo> logger, IBus bus, IDocumentRepository documents) { _logger = logger; _bus = bus; _documents = documents; _bus.AddEndPoint(x => x.QueueName("daemondemo").Exchange("daemondemo", ExchangeType.direct)); _bus.Subscribe("daemondemo", null); }