Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- var filename = args[0];
- var service = new ServiceImpl();
- var response = service.Execute(new Request {Payload = filename});
- var actualData = BinaryDataContractSerializer.Deserialize<DownloadFileResponse>(response);
- Console.WriteLine($"Congratulation! You have just downloaded {actualData.Data.Length} bytes.");
- Console.WriteLine("How about the total memory consumed?");
- Console.Read();
- }
Add Comment
Please, Sign In to add comment