Exemplo n.º 1
0
        public static void Main()
        {
            // In order to see cyrilic letters change the console font to: consolas
            DayOfWeekServiceClient client = new DayOfWeekServiceClient();

            Console.OutputEncoding = Encoding.Unicode;
            Console.WriteLine(client.GetDayOfWeek(DateTime.Now));
        }
Exemplo n.º 2
0
        static void Main()
        {
            DayOfWeekServiceClient client = new DayOfWeekServiceClient();
            var day = client.GetDayOfWeek(DateTime.Now);
            Console.WriteLine(day);

            // Always close the client.
            client.Close();
        }
Exemplo n.º 3
0
        static void Main()
        {
            DayOfWeekServiceClient client = new DayOfWeekServiceClient();
            var day = client.GetDayOfWeek(DateTime.Now);

            Console.WriteLine(day);

            // Always close the client.
            client.Close();
        }
Exemplo n.º 4
0
 public static void Main()
 {
     DayOfWeekServiceClient dayOfWeekClient = new DayOfWeekServiceClient();
     string result = dayOfWeekClient.GetDayOfWeek(DateTime.Now);
     Console.WriteLine(result);
 }