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);
        }
Example #2
0
 /// <summary>
 /// Создание экземпляра.
 /// </summary>
 /// <param name="database"></param>
 public BusDataAdapter(IBusDatabase database)
     : base(database)
 {
 }