private void RaiseLog(EventLoggerEventType eventType, Exception ex, string format, params object[] args) { if (this.Log != null) { string message = null; if (!string.IsNullOrEmpty(format)) { message = string.Format(CultureInfo.InvariantCulture, format, args); } this.Log(this, new EventLoggerEventArgs(eventType, message, ex)); } }