Beispiel #1
0
        public async Task Test1()
        {
            var con = new IPFSConnection.IPFSConnection();

            var str = await con.UploadDataAsync(System.Text.Encoding.UTF8.GetBytes("tratata"));

            Assert.IsNotNull(str);
        }
Beispiel #2
0
        public async Task StreamVideo()
        {
            var connect = new IPFSConnection.IPFSConnection();

            var expected = System.Text.Encoding.UTF8.GetBytes("tratata");

            var fileHash = await connect.UploadDataAsync(expected);

            var actual = await connect.GetVideoData64(fileHash);

            Assert.AreEqual(expected, actual);
        }