示例#1
0
 public void ConfigurationFailure(object sender, ValidationConfigurationFailureEventArgs e)
 {
     if (WmiEnabled)
     {
         FireManagementInstrumentation(new ValidationConfigurationFailureEvent(e.Exception.Message));
     }
     if (EventLoggingEnabled)
     {
         string entryText = eventLogEntryFormatter.GetEntryText(Resources.ConfigurationErrorMessage, e.Exception);
         EventLog.WriteEntry(GetEventSourceName(), entryText, EventLogEntryType.Error);
     }
 }
 public void ConfigurationFailure(object sender, ValidationConfigurationFailureEventArgs e)
 {
     if (WmiEnabled) FireManagementInstrumentation(new ValidationConfigurationFailureEvent(e.Exception.Message));
     if (EventLoggingEnabled)
     {
         string entryText = eventLogEntryFormatter.GetEntryText(Resources.ConfigurationErrorMessage, e.Exception);
         EventLog.WriteEntry(GetEventSourceName(), entryText, EventLogEntryType.Error);
     }
 }