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)
 {
 }
示例#3
0
 public CloneTemplates(CloningToolOptions options,
                       IReadOnlyRestClientFacade sourceRestClient,
                       IRestClientFacade destRestClient,
                       ILogger <CloneTemplates> logger)
 {
     _options         = options;
     _logger          = logger;
     SourceRestClient = sourceRestClient;
     DestRestClient   = destRestClient;
 }
示例#4
0
 protected CloneAdvertisementsBase(CloningToolOptions options,
                                   IReadOnlyRestClientFacade sourceRestClient,
                                   IRestClientFacade destRestClient,
                                   ILogger <CloneAdvertisementsBase> logger,
                                   bool isTruncatedCloning)
 {
     _options            = options;
     _logger             = logger;
     _isTruncatedCloning = isTruncatedCloning;
     SourceRestClient    = sourceRestClient;
     DestRestClient      = destRestClient;
 }
示例#5
0
        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;
        }