private void PushEventLog(string message, EventLogEntryType type, int eventId) { EventLogger eventLogger = new EventLogger(); switch (type) { case (EventLogEntryType.Information): eventLogger.EventLogInformation(message, eventId); break; default: throw new ArgumentException("Argument missing or not valid."); } }