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(); }
public static void SendCurrentDateTime() { ServiceBusUtils.SendMessage(DateTime.Now); }