Ejemplo n.º 1
0
 public MessageBus(IMessageHandlerResolver messageHandlerResolver,
                   IMessageBusAdminClient messageBusAdmin, IMessageBusClient messageBusClient,
                   IMessageProcessorResolver messageProcessorResolver,
                   MessageBusOptions?messageBusOptions = null)
 {
     _messageHandlerResolver   = messageHandlerResolver;
     _messageBusAdminClient    = messageBusAdmin;
     _messageBusClient         = messageBusClient;
     _messageProcessorResolver = messageProcessorResolver;
     _messageBusOptions        = messageBusOptions ?? new MessageBusOptions();
     _messageTypePropertyName  = _messageBusOptions.MessageTypePropertyName;
 }
Ejemplo n.º 2
0
 internal void Build(MessageBusOptions messageBusOptions)
 {
     _messageBusOptions = messageBusOptions;
     AddMessageVersionProperty();
     ValidateLabelOrMessageTypePropertyPresent();
 }