示例#1
0
        public void Init()
        {
            Setup(TestContext.CurrentContext);

            var dfsOptions = new DfsOptions(new BlockOptions(), new DiscoveryOptions(), new RepositoryOptions(FileSystem, Constants.DfsDataSubDir), Substitute.For <KeyChainOptions>(), Substitute.For <SwarmOptions>(), Substitute.For <IDnsClient>());

            _keyStoreService = new KeyStoreService(dfsOptions);
            _keyStoreService.SetPassphraseAsync(new SecureString()).Wait();
        }
示例#2
0
 public async Task SetPassphraseAsync(SecureString passphrase,
                                      CancellationToken cancel = default)
 {
     await _keyStoreService.SetPassphraseAsync(passphrase, cancel);
 }