コード例 #1
0
 RepositoryTester(string name, bool caching)
 {
     _Name = name;
     ServerTester.DeleteRecursivelyWithMagicDust(name);
     _Provider = new RepositoryProvider(new NBXplorerNetworkProvider(ChainType.Regtest),
                                        new Configuration.ExplorerConfiguration()
     {
         DataDir             = name,
         ChainConfigurations = new List <Configuration.ChainConfiguration>()
         {
             new Configuration.ChainConfiguration()
             {
                 CryptoCode = "BTC",
                 Rescan     = false
             }
         }
     });
     _Repository = _Provider.GetRepository(new NBXplorerNetworkProvider(ChainType.Regtest).GetFromCryptoCode("BTC"));
 }
コード例 #2
0
 public void Dispose()
 {
     _Provider.Dispose();
     ServerTester.DeleteRecursivelyWithMagicDust(_Name);
 }
コード例 #3
0
 public void Dispose()
 {
     _Repository.Dispose();
     ServerTester.DeleteRecursivelyWithMagicDust(_Name);
 }
コード例 #4
0
 RepositoryTester(string name, bool caching)
 {
     _Name = name;
     ServerTester.DeleteRecursivelyWithMagicDust(name);
     _Repository = new Repository(new Serializer(Network.RegTest), name);
 }