static int m_counter = 0; public string MyMethod() { m_counter++; return m_counter; }
static void Main(string[] args) { for (int i = 0; i < 5; i++) { Service1Client proxy = new Service1Client(); proxy.Open(); string sessionid = proxy.InnerChannel.SessionId; Console.WriteLine("Session id is: " + sessionid); Console.WriteLine("Data is: " + proxy.MyMethod()); proxy.Close(); } Console.ReadKey(true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)