public void InitListOfLogs() { System.Diagnostics.Eventing.Reader.EventLogSession session = new System.Diagnostics.Eventing.Reader.EventLogSession(); EventLogs = session.GetLogNames().ToList(); // the list of channels EventLogSources es = new EventLogSources(); es.AddRange(session.GetProviderNames().Select(x => new EventLogSourceItem { Title = x, IsSelected = false }).OrderBy(x => x.Title)); LogSources = es; }
public EventLogConfiguration(string logName, System.Diagnostics.Eventing.Reader.EventLogSession session) { }
public ProviderMetadata(string providerName, System.Diagnostics.Eventing.Reader.EventLogSession session, System.Globalization.CultureInfo targetCultureInfo) { }