Exemplo n.º 1
0
 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();
 }
Exemplo n.º 3
0
        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);
 }