public static void Main(String[] args) { UserApplicationSystemClient client = new UserApplicationSystemClient(); ProgramData message = client.DisplayUser("sudhakar"); Console.WriteLine(message); Console.ReadKey(); client.Close(); }
static void Main(string[] args) { ServiceHost hostMgr = new ServiceHost(typeof(UserApplicationSystem.Services.UASManager)); hostMgr.Open(); UserApplicationSystemClient client = new UserApplicationSystemClient(); ProgramData message = client.DisplayUser("sudhakar"); Console.WriteLine(message); Console.ReadKey(); client.Close(); hostMgr.Close(); }