Beispiel #1
0
 public ExtendedEventDataSaver(IDbConnectionProvider connectionProvider,
                               IQueryTextStoringService queryTextStoringService, IDateRepository dateRepository,
                               ILogger <ExtendedEventDataSaver> logger)
 {
     _connectionProvider      = connectionProvider;
     _queryTextStoringService = queryTextStoringService;
     _dateRepository          = dateRepository;
     _logger             = logger;
     _lockModeRepository = new SimpleLookupRepository <LockingMode>(connectionProvider);
     _lastQueryDate      = new ResettableLazy <DateTime>(connectionProvider.GetLastQueryDate <LongInfoRecord>);
     _lastDeadLockDate   = new ResettableLazy <DateTime>(connectionProvider.GetLastQueryDate <DeadLockInfoRecord>);
 }
 public QueryTextStoringService(ILogger <QueryTextStoringService> logger,
                                IDbConnectionProvider connectionProvider) : base(logger, connectionProvider)
 {
     _connectionProvider    = connectionProvider;
     _querySourceRepository = new SimpleLookupRepository <QuerySource>(connectionProvider);
 }
 public StackStoringService(ILogger <StackStoringService> logger, IDbConnectionProvider connectionProvider)
     : base(logger, connectionProvider)
 {
     _stackSourceRepository = new SimpleLookupRepository <StackSource>(connectionProvider);
 }