/// <summary> /// The ServicesControllerInfoEvent event invocation. /// </summary> /// <param name="info">The message string being supplied to the event listeners.</param> /// <remarks> /// Always a good idea to wrap event invocations inside a protected virtual method /// to allow derived classes to override the event invocation behavior. /// </remarks> protected virtual void OnServicesControllerInfoEvent(ServicesControllerInfoArgs info) { ServicesControllerInfoEvent?.Invoke(this, info); }
private static void ServicesControllerInfoEvent(object sender, ServicesControllerInfoArgs servicesControllerInfoArgs) { Console.WriteLine(servicesControllerInfoArgs.InfoMessage); }