public void Should_start_and_stop()
 {
     for (int i = 0; i < 3; ++i)
     {
         var g = new GatewayHost(ipfs, "http://127.0.0.1:0");
         g.Dispose();
     }
 }
Beispiel #2
0
        public static void Cleanup()
        {
            Gateway?.Dispose();
            Ipfs?.Stop();

            if (Directory.Exists(Ipfs.Options.Repository.Folder))
            {
                Directory.Delete(Ipfs.Options.Repository.Folder, true);
            }
        }