コード例 #1
0
        private static void TestSlave()
        {
            StorageNode storageNode = FastDFSClient.GetStorageNodeAsync("group1").Result;
            var         str         = "http://locahost/group1/M00/00/00/oYYBAFvcGZ2AGBAbAAAUa4KwmUU269.png";
            var         by          = GetFileBytes("testimage/1.jpg");
            var         url         = FastDFSClient.UploadSlaveFileAsync(storageNode, "M00/00/00/oYYBAFvcGZ2AGBAbAAAUa4KwmUU269.png",
                                                                         "_10x10", by, "jpg", CancellationToken.None).GetAwaiter().GetResult();

            Console.WriteLine(url);
        }