Example #1
0
 public S3RepositoryCleanerCircuitBreaker(
     IRepositoryCleaner <S3FileKey> repositoryCleaner,
     ILogger <S3RepositoryCleanerCircuitBreaker> logger,
     IOptions <CircuitBreakerOptions> circuitBreakerOptionsAccessor)
     : base(logger, circuitBreakerOptionsAccessor)
 {
     _repositoryCleaner = repositoryCleaner ?? throw new ArgumentNullException(nameof(repositoryCleaner));
 }
 public S3RepositoryCleanerRetrying(
     IRepositoryCleaner <S3FileKey> repositoryCleaner,
     ILogger <S3RepositoryCleanerRetrying> logger,
     IOptions <RetryOptions> retryOptionsAccessor)
     : base(logger, retryOptionsAccessor)
 {
     _repositoryCleaner = repositoryCleaner ?? throw new ArgumentNullException(nameof(repositoryCleaner));
 }
Example #3
0
 public S3RepositoryCleanerLogger(
     IRepositoryCleaner <S3FileKey> repositoryCleaner,
     ILogger <S3RepositoryCleanerLogger> logger,
     IBucketNameConstructor bucketNameConstructor)
     : base(logger, bucketNameConstructor)
 {
     _repositoryCleaner = repositoryCleaner ?? throw new ArgumentNullException(nameof(repositoryCleaner));
 }
Example #4
0
 public CleanRepository()
 {
     _respositoryCleaner = new RepositoryCleaner(this.IndexReader, this.Settings, new TestLogger <IRepositoryCleaner>());
 }
Example #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="packageService"></param>
 /// <param name="settings"></param>
 /// <param name="indexService"></param>
 /// <param name="log"></param>
 public CleanController(IRepositoryCleaner repositoryCleaner, IIndexReader indexService)
 {
     _indexService      = indexService;
     _repositoryCleaner = repositoryCleaner;
 }
Example #6
0
 public Daemon(IRepositoryCleaner repositoryCleaner, IIndexReader indexService, ILogger <Daemon> log)
 {
     _indexService      = indexService;
     _repositoryCleaner = repositoryCleaner;
     _log = log;
 }