예제 #1
0
        private static void Main(string[] args)
        {
            var client = new UserContractClient();

            try
            {
                var result = client.Login("", "");
                Console.WriteLine(result);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                client = new UserContractClient();
            }

            var obj = client.GetUser(999);

            Console.WriteLine(obj.Id + " " + obj.CtfId + " " + obj.Name);

            Console.ReadLine();
        }
예제 #2
0
 /// <summary>
 /// Default constructor - initializes userContractClient.
 /// </summary>
 public UserPresenter()
 {
     _ucc = new UserContractClient();
 }