コード例 #1
0
ファイル: Bus.cs プロジェクト: AdrianFreemantle/Hermes
 public Bus(ISerializeMessages messageSerializer, ITransportMessages messageTransport, IRouteMessageToEndpoint messageRouter, IPublishMessages messagePublisher, IProcessMessages messageProcessor)
 {
     this.messageSerializer = messageSerializer;
     this.messageTransport = messageTransport;
     this.messageRouter = messageRouter;
     this.messagePublisher = messagePublisher;
     this.messageProcessor = messageProcessor;
 }
コード例 #2
0
 public MessageRouter(
     IDisposable disposer,
     IHandleUnitOfWork unitOfWork,
     ITransportMessages messageTransport,
     ITrackMessageHandlers handlerTable,
     IHandlePoisonMessages poisonMessageHandler)
 {
     this.disposer             = disposer;
     this.unitOfWork           = unitOfWork;
     this.messageTransport     = messageTransport;
     this.handlerTable         = handlerTable;
     this.poisonMessageHandler = poisonMessageHandler;
     this.ContinueProcessing   = true;
 }
コード例 #3
0
 public MessageRouter(
     IDisposable disposer,
     IHandleUnitOfWork unitOfWork,
     ITransportMessages messageTransport,
     ITrackMessageHandlers handlerTable,
     IHandlePoisonMessages poisonMessageHandler)
 {
     this.disposer = disposer;
     this.unitOfWork = unitOfWork;
     this.messageTransport = messageTransport;
     this.handlerTable = handlerTable;
     this.poisonMessageHandler = poisonMessageHandler;
     this.ContinueProcessing = true;
 }
コード例 #4
0
 public MessageBus(
     ITransportMessages transport,
     IStoreSubscriptions subscriptions,
     IDictionary <Type, ICollection <Uri> > recipients,
     IMessageContext context,
     MessageBuilder builder,
     IDiscoverMessageTypes discoverer)
 {
     this.transport     = transport;
     this.subscriptions = subscriptions;
     this.recipients    = recipients;
     this.context       = context;
     this.builder       = builder;
     this.discoverer    = discoverer;
 }
コード例 #5
0
 public MessageBus(
     ITransportMessages transport,
     IStoreSubscriptions subscriptions,
     IDictionary<Type, ICollection<Uri>> recipients,
     IMessageContext context,
     MessageBuilder builder,
     IDiscoverMessageTypes discoverer)
 {
     this.transport = transport;
     this.subscriptions = subscriptions;
     this.recipients = recipients;
     this.context = context;
     this.builder = builder;
     this.discoverer = discoverer;
 }
コード例 #6
0
ファイル: Connection.cs プロジェクト: KennethJakobsen/ReCom
        private async Task SendHandledConfirmation(ITransportMessages transport)
        {
            if (!(transport is CommandTransportMessage msgTransport))
            {
                throw new InvalidCastException();
            }

            if (msgTransport.RequiresHandledFeedback)
            {
                await Send(new HandledMessage()
                {
                    HandledMessageId = transport.MessageId
                });
            }
        }
コード例 #7
0
		public MessageSubscriber(Uri returnAddress, ITransportMessages transport)
		{
			this.returnAddress = returnAddress;
			this.transport = transport;
		}
コード例 #8
0
 public MessageSubscriber(Uri returnAddress, ITransportMessages transport)
 {
     this.returnAddress = returnAddress;
     this.transport = transport;
 }
コード例 #9
0
 public async Task WriteCommandAsync(ITransportMessages command)
 {
     var commandBytes = _commandConverter.Serialize(command);
     await _protocol.WriteCommandToStream(commandBytes, _stream);
 }
コード例 #10
0
ファイル: LocalBus.cs プロジェクト: kehinze/Hermes
 public LocalBus(ITransportMessages messageTransport, IContainer container, IDispatchMessagesToHandlers dispatcher)
 {
     this.messageTransport = messageTransport;
     this.dispatcher = dispatcher;
     this.container = container;
 }
コード例 #11
0
ファイル: ControlBus.cs プロジェクト: AdrianFreemantle/Hermes
 public ControlBus(ITransportMessages messageTransport)
 {
     this.messageTransport = messageTransport;
 }