/// <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); } }
/// <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); } }