/// <summary> /// Raises the event for driver registration failure. /// </summary> /// <param name="e">A <see cref="DriverRegistrationFailedEventArgs"/> object describing /// the reason the driver registration failed.</param> protected void OnDriverRegistrationFailed(DriverRegistrationFailedEventArgs e) { if (this.DriverRegistrationFailed != null) { this.DriverRegistrationFailed(this, e); } }
private void Instance_DriverRegistrationFailed(object sender, DriverRegistrationFailedEventArgs e) { string logMessage = string.Format(CultureInfo.InvariantCulture, "Could not register driver with type '{0}'.\nThe reason given was:\n{1}", e.DriverClass, e.Reason); this.ServerLogger.Log(logMessage, LogLevel.Error); }