CapRaffle.WinService.RafflingService.WriteLogEntry C# (CSharp) Метод

WriteLogEntry() приватный Метод

private WriteLogEntry ( string message, EventLogEntryType type = EventLogEntryType.Information ) : void
message string
type EventLogEntryType
Результат void
        private void WriteLogEntry(string message, EventLogEntryType type = EventLogEntryType.Information)
        {
            if (!EventLog.SourceExists("Raffling"))
                EventLog.CreateEventSource("Raffling", "Application");
            EventLog.WriteEntry("Raffling", message, type);
        }