Ejemplo n.º 1
0
 public void ConfigurationFailure(object sender, LoggingConfigurationFailureEventArgs e)
 {
     if (WmiEnabled)
     {
         FireManagementInstrumentation(new LoggingConfigurationFailureEvent(e.Exception.Message));
     }
     if (EventLoggingEnabled)
     {
         string entryText = eventLogEntryFormatter.GetEntryText(Resources.ConfigurationFailureUpdating, e.Exception);
         EventLog.WriteEntry(GetEventSourceName(), entryText, EventLogEntryType.Error);
     }
 }
		public void ConfigurationFailure(object sender, LoggingConfigurationFailureEventArgs e)
		{
			if (WmiEnabled) FireManagementInstrumentation(new LoggingConfigurationFailureEvent(e.Exception.Message));
			if (EventLoggingEnabled)
			{
				string entryText = eventLogEntryFormatter.GetEntryText(Resources.ConfigurationFailureUpdating, e.Exception);
				EventLog.WriteEntry(GetEventSourceName(), entryText, EventLogEntryType.Error);
			}
		}