Esempio n. 1
0
        public async Task <bool> CloneAsync(CloneMode mode)
        {
            await SourceRepository.EnsureApiAvailableAsync(_initialPingInterval, _initialPingTries);

            await DestRepository.EnsureApiAvailableAsync(_initialPingInterval, _initialPingTries);

            var strategy = _strategyProvider.GetCloneStrategy(mode);

            return(await strategy.ExecuteAsync());
        }