예제 #1
0
파일: Program.cs 프로젝트: pcyin/TinyDFS
 static void Test()
 {
     UploadFile(@"D:\Research\KB\kb.entity.subset");
     DownLoadFile("kb.entity.subset");
     var wclient = new NameNodeServiceClient();
     wclient.DeleteFile("kb.entity.subset");
     FileServiceClient client = new FileServiceClient("BasicHttpBinding_IFileService", "http://*****:*****@"D:\Research\KB\kb.entity", FileMode.Open);
     var stream = new CombinedStream(streams);
     client.UploadChunk(stream);
 }
예제 #2
0
파일: Program.cs 프로젝트: pcyin/TinyDFS
 private static void DeleteFile(string p)
 {
     var client = new NameNodeServiceClient();
     client.DeleteFile(p);
 }