Пример #1
0
 /// <summary>
 ///     Used to invoke the <see cref="WorkStarted" /> event
 /// </summary>
 private void OnStarted()
 {
     logger.Log(LogLevel.Information, this, string.Format("Worker started at {0}", DateTime.Now));
     if (WorkStarted != null)
     {
         WorkStarted.BeginInvoke(this, iar => WorkStarted.EndInvoke(iar), null);
     }
 }
Пример #2
0
 /// <summary>
 ///     Used to invoke the <see cref="WorkStarted" /> event
 /// </summary>
 private void OnStarted()
 {
     LogInformation("Worker started at {0}", DateTime.Now);
     if (WorkStarted != null)
     {
         WorkStarted.BeginInvoke(this, iar => WorkStarted.EndInvoke(iar), null);
     }
 }