public void Start(NotifyDelegate nd) { Console.WriteLine("Yes, I shouldn't write to the console from here, it's just to demonstrate the code executed."); Console.WriteLine("SaveToDatabase Complete"); Console.WriteLine(" "); nd.Invoke(); }
public void Start(NotifyDelegate nd) { /* I shouldn't write to the console from here, * just for demonstration purposes */ Console.WriteLine("SaveToDatabase Complete"); Console.WriteLine(" "); nd.Invoke(); }
public void Start(NotifyDelegate nd) { string message = string.Empty; if (DateTime.Now.Second > 30) { message = "Success"; } else { message = "failure"; } nd.Invoke(message); }
public void Notify(string Msg) { m_Notifier.Invoke(Msg); }