Exemple #1
0
        public Broker(IChannelFactory channelFactory, IConfig conf, IAddressConfig addressConf)
        {
            this.channelFactory = channelFactory ?? throw new ArgumentNullException(nameof(channelFactory));
            this.conf           = conf ?? throw new ArgumentNullException(nameof(conf));

            address      = addressConf.Address;
            errorAddress = addressConf.ErrorAddress;
            channel      = channelFactory.GetChannel();
        }
 public HandleErrorMessageMiddleware(IBroker broker, IAddressConfig addressConfig)
 {
     this.broker        = broker ?? throw new ArgumentNullException(nameof(broker));
     this.addressConfig = addressConfig ?? throw new ArgumentNullException(nameof(addressConfig));
 }
Exemple #3
0
 public SubscriptionManager(IChannelFactory channelFactory, IAddressConfig addressConf, ILogger <SubscriptionManager> logger)
 {
     this.channelFactory = channelFactory ?? throw new ArgumentNullException(nameof(channelFactory));
     this.addressConf    = addressConf ?? throw new ArgumentNullException(nameof(addressConf));
     this.logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemple #4
0
 public TestConsumerFactory(IAddressConfig addressConfig, IServiceProvider serviceProvider)
 {
     this.addressConfig   = addressConfig ?? throw new ArgumentNullException(nameof(addressConfig));
     this.serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
 }
Exemple #5
0
 public TestConsumer(IAddressConfig config)
 {
     this.config = config ?? throw new ArgumentNullException(nameof(config));
 }
Exemple #6
0
 public ChannelFactory(IConfig conf, IAddressConfig addressConf)
 {
     this.conf = conf;
     CreateConnection(addressConf.Address);
 }
Exemple #7
0
 public ConsumerFactory(IChannelFactory channelFactory, IAddressConfig conf)
 {
     this.channelFactory = channelFactory;
     this.conf           = conf;
 }