예제 #1
0
        public void CompleteCycle(DateTime startedAt)
        {
            TimeSpan duration = DateTime.Now.Subtract(startedAt);

            Console.WriteLine("Completed cycle in {0} ms", duration.TotalMilliseconds);

            // start another cycle
            ServiceBusUtils.SendCurrentDateTime();
        }
예제 #2
0
 public static void SendCurrentDateTime()
 {
     ServiceBusUtils.SendMessage(DateTime.Now);
 }