private async Task SynchronizeAsync(string localSigName, string localSigSigName, string remoteSigName, string remoteSigSigName, CancellationToken token) { using (var needListGenerator = new NeedListGenerator(localSignatureRepository, remoteCacheSignatureRepository)) { var source = new RemoteSignaturePartialAccess(ravenFileSystemClient, remoteSigName); var seed = new SignaturePartialAccess(localSigName, localSignatureRepository); var needList = needListGenerator.CreateNeedsList(SignatureInfo.Parse(localSigSigName), SignatureInfo.Parse(remoteSigSigName), token); using (var output = remoteCacheSignatureRepository.CreateContent(remoteSigName)) { await NeedListParser.ParseAsync(source, seed, output, needList, token); } } }
private async Task SynchronizeAsync(string localSigName, string localSigSigName, string remoteSigName, string remoteSigSigName, CancellationToken token) { using (var needListGenerator = new NeedListGenerator(localSignatureRepository, remoteCacheSignatureRepository)) { var source = new RemoteSignaturePartialAccess(commands, remoteSigName); var seed = new SignaturePartialAccess(localSigName, localSignatureRepository); var needList = needListGenerator.CreateNeedsList(SignatureInfo.Parse(localSigSigName), SignatureInfo.Parse(remoteSigSigName), token); using (var output = remoteCacheSignatureRepository.CreateContent(remoteSigName)) { await NeedListParser.ParseAsync(source, seed, output, needList, token); } } }