public ProcessChannelContext(ChannelInfo channelInfo, MicroserviceDescription description, IChannelFactory factory, IBusDataAdapter dataAdapter) { _channelInfo = channelInfo ?? throw new ArgumentNullException(nameof(channelInfo)); _description = description ?? throw new ArgumentNullException(nameof(description)); _factory = factory ?? throw new ArgumentNullException(nameof(factory)); _dataAdapter = dataAdapter ?? throw new ArgumentNullException(nameof(dataAdapter)); }
public ChannelManager(IAddinManager addinManager, IChannelContextFactory contextFactory, BusSettings busSettings, IBusDataAdapter dataAdapter, ILogger logger) { _addinManager = addinManager ?? throw new ArgumentNullException(nameof(addinManager)); _contextFactory = contextFactory ?? throw new ArgumentNullException(nameof(contextFactory)); _busSettings = busSettings ?? throw new ArgumentNullException(nameof(addinManager)); _dataAdapter = dataAdapter ?? throw new ArgumentNullException(nameof(dataAdapter)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _groups = new ConcurrentDictionary <string, GroupInfo>(); _channels = new ConcurrentDictionary <string, IChannelContext>(); }
public MessageService(IServiceProvider serviceProvider) { _cancellationSource = new CancellationTokenSource(); _appConfig = serviceProvider.GetRequiredService <IAppSettingsConfig>(); _connConfig = serviceProvider.GetRequiredService <IConnectionStringsConfig>(); _busSettings = serviceProvider.GetRequiredService <BusSettings>(); _logger = serviceProvider.GetRequiredService <ILogger>(); _database = serviceProvider.GetRequiredService <IBusDatabase>(); _dataAdapter = serviceProvider.GetRequiredService <IBusDataAdapter>(); _authManager = serviceProvider.GetRequiredService <IAuthManager>(); _channelManager = serviceProvider.GetRequiredService <IChannelManager>(); _addinManager = serviceProvider.GetRequiredService <IAddinManager>(); _licManager = serviceProvider.GetRequiredService <ILicenseManager>(); _serviceInfo = serviceProvider.GetRequiredService <ServiceInfo>(); //_serviceInfoManager = serviceProvider.GetRequiredService<IServiceInfoManager>(); SetCurrentParamsTo(_serviceInfo); }
public ChannelContextFactory(IAddinManager addinManager, IChannelFactory factory, IBusDataAdapter dataAdapter) { _addinManager = addinManager ?? throw new ArgumentNullException(nameof(addinManager)); _factory = factory ?? throw new ArgumentNullException(nameof(factory)); _dataAdapter = dataAdapter ?? throw new ArgumentNullException(nameof(dataAdapter)); }