Beispiel #1
0
 public void TestDeleteContainer()
 {
     using var client = new Client.Client(key, host);
     using var source = new CancellationTokenSource();
     source.CancelAfter(10000);
     client.DeleteContainer(cid, context: source.Token).Wait();
 }
        public void TestDeleteContainer()
        {
            var host   = "localhost:8080";
            var key    = "KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr".LoadWif();
            var client = new Client.Client(key, host);
            var cid    = ContainerID.FromBase58String("Bun3sfMBpnjKc3Tx7SdwrMxyNi8ha8JT3dhuFGvYBRTz");
            var source = new CancellationTokenSource();

            source.CancelAfter(10000);
            client.DeleteContainer(source.Token, cid);
        }