Example #1
0
 public RemoveFromReadQueueAspect(IHandleMessage <Message> action, IReadMessageContext context, IBusConfig config, ILogMessages logger)
 {
     _context = context;
     _config  = config;
     _logger  = logger;
     _inner   = action;
 }
 public StudentController(IMapper mapper,
                          Messages messages, IBusConfig busConfig)
 {
     _mapper    = mapper;
     _messages  = messages;
     _busConfig = busConfig;
 }
Example #3
0
 public HandleMessageMiddleware(IHandlerCache handlerCache, IServiceProvider serviceProvider, IBusConfig busConfig, ILogger <HandleMessageMiddleware> logger)
 {
     this.handlerCache    = handlerCache ?? throw new ArgumentNullException(nameof(handlerCache));
     this.serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     this.busConfig       = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
     this.logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #4
0
        public Host(IBusConfig busConfig, ITaskRunner taskRunner)
        {
            this.busConfig  = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
            this.taskRunner = taskRunner ?? throw new ArgumentNullException(nameof(taskRunner));

            ConfigureLogging();
        }
Example #5
0
 public MemoryBus(IBusConfig config)
 {
     _config              = config;
     _pubSubBus           = new PublishSubscribeBus();
     _reqRespBus          = new RequestRespondBus();
     _streamingReqRespBus = new RequestRespondStreamingBus();
 }
Example #6
0
 public Bus(IBusConfig config, ILogMessages logger, IMessageQueue errorQueue, IMessageQueue readQueue, IEnumerable <IMessageQueue> writeQueues)
 {
     _config            = config;
     _logger            = logger;
     _errorQueue        = errorQueue;
     _readQueue         = readQueue;
     _writeQueueManager = new WriteQueueManager(_config.AutoDistributeOnSend, writeQueues);
 }
Example #7
0
 public Bus(IBusConfig config, ILogMessages logger, IMessageQueue errorQueue, IMessageQueue readQueue, IEnumerable <IMessageQueue> writeQueues)
 {
     _config      = config;
     _logger      = logger;
     _errorQueue  = errorQueue;
     _readQueue   = readQueue;
     _writeQueues = writeQueues;
 }
Example #8
0
 public Application(IBusConfig busConfig)
 {
     _busConfig = busConfig;
 }
Example #9
0
 public SendMessageHandler(IWriteMessageContext context, IBusConfig config, ILogMessages logger)
 {
     _context = context;
     _config  = config;
     _logger  = logger;
 }
Example #10
0
 public BusFactory(IBusConfig busConfig, ILogger <RabbitBus> logger)
 {
     this.busConfig = busConfig;
     this.logger    = logger;
 }
Example #11
0
 public HandleMessageMiddleware(IHandlerCache handlerCache, IObjectFactory objectFactory, IBusConfig busConfig)
 {
     this.handlerCache  = handlerCache ?? throw new ArgumentNullException(nameof(handlerCache));
     this.objectFactory = objectFactory ?? throw new ArgumentNullException(nameof(objectFactory));
     this.busConfig     = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
 }
 public ReceiveMessageHandler(List <Delegate> handlers, IBusConfig config, ILogMessages logger)
 {
     _handlers = handlers;
     _config   = config;
     _logger   = logger;
 }
 public DiscardFailuresAspect(IHandleMessage <Message> action, IBusConfig config, ILogMessages logger)
 {
     _inner  = action;
     _config = config;
     _logger = logger;
 }
Example #14
0
 public RabbitMQPublishingChannel(IChannelFactory cf, IBusConfig busConfig)
     : base(cf)
 {
     this.busConfig = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
 }
Example #15
0
 public WorkerStartupTask(IBusConfig busConfig, IObjectFactory objectFactory, IHandlerCache handlerCache)
 {
     this.busConfig     = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
     this.objectFactory = objectFactory ?? throw new ArgumentNullException(nameof(objectFactory));
     this.handlerCache  = handlerCache ?? throw new ArgumentNullException(nameof(handlerCache));
 }
Example #16
0
 public BusBuilder()
 {
     _config = new BusConfig();
 }
Example #17
0
 public Application(IBusConfig busConfig)
 {
     _busConfig   = busConfig;
     _paymentSaga = new PaymentSaga();
     _repo        = new InMemorySagaRepository <PaymentSagaStatus>();
 }
Example #18
0
 public Application(IBusConfig busConfig, Messages messages)
 {
     _busConfig = busConfig;
     _messages  = messages;
 }
Example #19
0
 public SubscriptionManager(IChannelFactory channelFactory, IBusConfig busConfig)
 {
     this.channelFactory = channelFactory ?? throw new ArgumentNullException(nameof(channelFactory));
     this.busConfig      = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
 }
 public CollectPaymentCommandHandler(IRepository repository,
                                     IBusConfig busConfig)
 {
     _repository = repository;
     _busConfig  = busConfig;
 }
 public CopyMessageHandler(IWriteMessageContext toContext, IBusConfig config, ILogMessages logger)
 {
     _toContext = toContext;
     _config    = config;
     _logger    = logger;
 }
Example #22
0
 public MsmqSubscriptionStorage(IBusConfig busConfig, IBodySerializer bodySerializer)
 {
     this.bodySerializer = bodySerializer ?? throw new ArgumentNullException(nameof(bodySerializer));
     this.busConfig      = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
 }
Example #23
0
 public FailFastAspect(IHandleMessage <Message> action, IBusConfig config, ILogMessages logger)
 {
     _inner  = action;
     _config = config;
     _logger = logger;
 }
 public HandleErrorMessageMiddleware(ISendingChannel sendingChannel, IBusConfig busConfig)
 {
     this.sendingChannel = sendingChannel ?? throw new ArgumentNullException(nameof(sendingChannel));
     this.busConfig      = busConfig ?? throw new ArgumentNullException(nameof(busConfig));
 }
Example #25
0
 public ChannelFactory(IRabbitMQConfig rabbitCfg, IBusConfig busCfg)
 {
     this.rabbitCfg = rabbitCfg;
     endpointName   = busCfg.EndpointName;
     CreateConnection();
 }