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)); }
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)); }
public TestConsumerFactory(IAddressConfig addressConfig, IServiceProvider serviceProvider) { this.addressConfig = addressConfig ?? throw new ArgumentNullException(nameof(addressConfig)); this.serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); }
public TestConsumer(IAddressConfig config) { this.config = config ?? throw new ArgumentNullException(nameof(config)); }
public ChannelFactory(IConfig conf, IAddressConfig addressConf) { this.conf = conf; CreateConnection(addressConf.Address); }
public ConsumerFactory(IChannelFactory channelFactory, IAddressConfig conf) { this.channelFactory = channelFactory; this.conf = conf; }