Advertisement
patryk_szwed

ConsoleApp1 Program

Jun 3rd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp1
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Service1Client client = new Service1Client();
  14.  
  15. Console.WriteLine("Opend client");
  16.  
  17. int x = 5;
  18.  
  19. Console.WriteLine("Calling fuction factorial with parameter " + x);
  20.  
  21. int result = client.Factorial(10);
  22.  
  23. Console.WriteLine("Factorial of 10 is " + result);
  24.  
  25. client.Close();
  26.  
  27. Console.WriteLine("Client closed");
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement