static void Main(string[] args) { ReplyClient proxy = new ReplyClient(); proxy.FastReply(); //proxy.SlowReply(); Console.Write("Hi. (:\n\n\n"); }
static void Main(string[] args) { using (ReplyClient proxy = new ReplyClient()) { // proxy.SlowReply(); proxy.FastReply(); Console.WriteLine("ENter number"); int number = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("User put number"); } }
static void Main(string[] args) { using (ReplyClient client = new ReplyClient()) { Console.WriteLine("Enter number:"); int a = Convert.ToInt32(Console.ReadLine()); // client.SlowReply(); client.FastReply(); Console.WriteLine("U put: " + a); } }
static void Main(string[] args) { ReplyClient proxy = new ReplyClient(); //proxy.FastReply(); proxy.SlowReply(); Console.WriteLine("Enter numeric value"); int val = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("You enter {0}", val); proxy.Close(); }
static void Main(string[] args) { ReplyClient proxy = new ReplyClient(); //proxy.FastReply(); proxy.SlowReply(); Console.WriteLine("Введите числовое значение "); int value = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Вы ввели {0}", value); proxy.Close(); }