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; }
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; }
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; }
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; }
private async Task SendHandledConfirmation(ITransportMessages transport) { if (!(transport is CommandTransportMessage msgTransport)) { throw new InvalidCastException(); } if (msgTransport.RequiresHandledFeedback) { await Send(new HandledMessage() { HandledMessageId = transport.MessageId }); } }
public MessageSubscriber(Uri returnAddress, ITransportMessages transport) { this.returnAddress = returnAddress; this.transport = transport; }
public async Task WriteCommandAsync(ITransportMessages command) { var commandBytes = _commandConverter.Serialize(command); await _protocol.WriteCommandToStream(commandBytes, _stream); }
public LocalBus(ITransportMessages messageTransport, IContainer container, IDispatchMessagesToHandlers dispatcher) { this.messageTransport = messageTransport; this.dispatcher = dispatcher; this.container = container; }
public ControlBus(ITransportMessages messageTransport) { this.messageTransport = messageTransport; }