Guest User

Untitled

a guest
Oct 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. var filename = args[0];
  4. var service = new ServiceImpl();
  5. var response = service.Execute(new Request {Payload = filename});
  6. var actualData = BinaryDataContractSerializer.Deserialize<DownloadFileResponse>(response);
  7.  
  8. Console.WriteLine($"Congratulation! You have just downloaded {actualData.Data.Length} bytes.");
  9. Console.WriteLine("How about the total memory consumed?");
  10. Console.Read();
  11. }
Add Comment
Please, Sign In to add comment