Пример #1
0
        public static void Main(String[] args)
        {
            UserApplicationSystemClient client = new UserApplicationSystemClient();
            ProgramData message = client.DisplayUser("sudhakar");

            Console.WriteLine(message);
            Console.ReadKey();
            client.Close();
        }
Пример #2
0
        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();
        }