2 instantiations of EventLogSettings
Microsoft.Extensions.Logging.EventLog (2)
EventLoggerFactoryExtensions.cs (1)
43AddEventLog(factory, new EventLogSettings() { Filter = (_, logLevel) => logLevel >= minLevel });
EventLogLoggerProvider.cs (1)
32_settings = settings ?? new EventLogSettings();
21 references to EventLogSettings
Microsoft.Extensions.Hosting.WindowsServices (3)
WindowsServiceLifetimeHostBuilderExtensions.cs (3)
121services.AddSingleton<IConfigureOptions<EventLogSettings>, EventLogSettingsSetup>(); 125private sealed class EventLogSettingsSetup : IConfigureOptions<EventLogSettings> 134public void Configure(EventLogSettings settings)
Microsoft.Extensions.Logging.EventLog (18)
EventLogConfigureOptions.cs (2)
19internal sealed class EventLogConfigureOptions : IConfigureOptions<EventLogSettings> 29public void Configure(EventLogSettings options) => _configuration.Bind(options);
EventLoggerFactoryExtensions.cs (9)
23/// <param name="settings">The <see cref="EventLogSettings"/>.</param> 26public static ILoggerFactory AddEventLog(this ILoggerFactory factory, EventLog.EventLogSettings settings) 64builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<EventLogSettings>, EventLogConfigureOptions>()); 65builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IOptionsChangeTokenSource<EventLogSettings>, LoggerProviderOptionsChangeTokenSource<EventLogSettings, EventLogLoggerProvider>>()); 74/// <param name="settings">The <see cref="EventLogSettings"/>.</param> 76public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder, EventLogSettings settings) 90/// <param name="configure">A delegate to configure the <see cref="EventLogSettings"/>.</param> 92public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder, Action<EventLogSettings> configure)
EventLogLogger.cs (3)
17private readonly EventLogSettings _settings; 28/// <param name="settings">The <see cref="EventLogSettings"/>.</param> 30public EventLogLogger(string name, EventLogSettings settings, IExternalScopeProvider? externalScopeProvider)
EventLogLoggerProvider.cs (4)
14internal readonly EventLogSettings _settings; 29/// <param name="settings">The <see cref="EventLogSettings"/>.</param> 30public EventLogLoggerProvider(EventLogSettings? settings) 39public EventLogLoggerProvider(IOptions<EventLogSettings> options)