Пример #1
0
        public CoreBus(ISendingChannel sendingChannel, IPublishingChannel publishingChannel, IMessageRouting messageRouting)
        {
            if (sendingChannel == null) throw new ArgumentNullException(nameof(sendingChannel));
            if (messageRouting == null) throw new ArgumentNullException(nameof(messageRouting));
            if (publishingChannel == null) throw new ArgumentNullException(nameof(publishingChannel));

            this.sendingChannel = sendingChannel;
            this.messageRouting = messageRouting;
            this.publishingChannel = publishingChannel;

            serializer = MessageSerlializerResolver.GetSerializer();
        }
Пример #2
0
 public NsbMessageBusManager(INsbMessageBusFactory messageBusFactory, IMessageRouting routing)
 {
   _messageBusFactory = messageBusFactory;
   _routing = routing;
 }
 public NsbMessageBusFactory(IMachineContainer container, IMessageRegisterer registerer, IMessageRouting messageRouting)
 {
   _container = container;
   _messageRouting = messageRouting;
   _registerer = registerer;
 }
 public StaticSubscriptionStorage(IMessageRouting routing, IMessageMapper mapper)
 {
   _routing = routing;
   _mapper = mapper;
 }