public CloneAdvertisements(CloningToolOptions options, IReadOnlyRestClientFacade sourceRestClient, IRestClientFacade destRestClient, ILogger <CloneAdvertisements> logger) : base(options, sourceRestClient, destRestClient, logger, false) { }
public TruncatedCloneAdvertisements(CloningToolOptions options, IReadOnlyRestClientFacade sourceRestClient, IRestClientFacade destRestClient, ILogger <TruncatedCloneAdvertisements> logger) : base(options, sourceRestClient, destRestClient, logger, true) { }
public CloneTemplates(CloningToolOptions options, IReadOnlyRestClientFacade sourceRestClient, IRestClientFacade destRestClient, ILogger <CloneTemplates> logger) { _options = options; _logger = logger; SourceRestClient = sourceRestClient; DestRestClient = destRestClient; }
protected CloneAdvertisementsBase(CloningToolOptions options, IReadOnlyRestClientFacade sourceRestClient, IRestClientFacade destRestClient, ILogger <CloneAdvertisementsBase> logger, bool isTruncatedCloning) { _options = options; _logger = logger; _isTruncatedCloning = isTruncatedCloning; SourceRestClient = sourceRestClient; DestRestClient = destRestClient; }
public CloningService( CloningToolOptions options, IReadOnlyRestClientFacade sourceRepository, IRestClientFacade destRepository, ICloneStrategyProvider strategyProvider) { if (options.MaxDegreeOfParallelism < 1) { throw new ArgumentOutOfRangeException(nameof(options.MaxDegreeOfParallelism)); } _initialPingInterval = options.InitialPingInterval; _initialPingTries = options.InitialPingTries; SourceRepository = sourceRepository; DestRepository = destRepository; _strategyProvider = strategyProvider; }