Beispiel #1
0
 public MySqlStorage(ILogger <MySqlStorage> logger,
                     MySqlOptions options,
                     CapOptions capOptions)
 {
     _options    = options;
     _capOptions = capOptions;
     _logger     = logger;
 }
Beispiel #2
0
        public MySqlFetchedMessage(int messageId, MessageType type, string processId, MySqlOptions options)
        {
            MessageId   = messageId;
            MessageType = type;

            _processId = processId;
            _options   = options;
        }
 public DefaultAdditionalProcessor(
     IServiceProvider provider,
     ILogger <DefaultAdditionalProcessor> logger,
     MySqlOptions mysqlOptions)
 {
     _logger   = logger;
     _provider = provider;
     _options  = mysqlOptions;
 }
Beispiel #4
0
        public CapPublisher(IServiceProvider provider,
            ILogger<CapPublisher> logger,
            MySqlOptions options)
        {
            ServiceProvider = provider;
            _options = options;
            _logger = logger;

            if (_options.DbContextType == null) return;
            IsUsingEF = true;
            _dbContext = (DbContext) ServiceProvider.GetService(_options.DbContextType);
        }
Beispiel #5
0
        public CapPublisher(ILogger <CapPublisher> logger, IDispatcher dispatcher, IServiceProvider provider,
                            MySqlOptions options)
            : base(logger, dispatcher)
        {
            ServiceProvider = provider;
            _options        = options;

            if (_options.DbContextType == null)
            {
                return;
            }

            IsUsingEF  = true;
            _dbContext = (DbContext)ServiceProvider.GetService(_options.DbContextType);
        }
 public MySqlStorageConnection(MySqlOptions options, CapOptions capOptions)
 {
     _capOptions = capOptions;
     Options     = options;
     _prefix     = Options.TableNamePrefix;
 }
 public MySqlPublisher(IServiceProvider provider) : base(provider)
 {
     _options = provider.GetService <IOptions <MySqlOptions> >().Value;
 }
Beispiel #8
0
 public MySqlMonitoringApi(IStorage storage, MySqlOptions options)
 {
     _storage = storage as MySqlStorage ?? throw new ArgumentNullException(nameof(storage));
     _prefix  = options?.TableNamePrefix ?? throw new ArgumentNullException(nameof(options));
 }
Beispiel #9
0
 public MySqlMonitoringApi(IOptions <MySqlOptions> options, IStorageInitializer initializer)
 {
     _options = options.Value ?? throw new ArgumentNullException(nameof(options));
     _pubName = initializer.GetPublishedTableName();
     _recName = initializer.GetReceivedTableName();
 }
Beispiel #10
0
 public MySqlPublisher(IServiceProvider provider) : base(provider)
 {
     _options = provider.GetService <MySqlOptions>();
 }
Beispiel #11
0
 public MySqlCollectProcessor(ILogger <MySqlCollectProcessor> logger, IOptions <MySqlOptions> mysqlOptions)
 {
     _logger  = logger;
     _options = mysqlOptions.Value;
 }
Beispiel #12
0
 public DefaultAdditionalProcessor(ILogger <DefaultAdditionalProcessor> logger,
                                   MySqlOptions mysqlOptions)
 {
     _logger  = logger;
     _options = mysqlOptions;
 }
Beispiel #13
0
 public MySqlStorageConnection(MySqlOptions options)
 {
     _options = options;
     _prefix  = _options.TableNamePrefix;
 }
Beispiel #14
0
 public MySqlCollectProcessor(ILogger <MySqlCollectProcessor> logger,
                              MySqlOptions mysqlOptions)
 {
     _logger  = logger;
     _options = mysqlOptions;
 }