public ServiceHostGenericListenerLogger( IServiceHostGenericListenerInformation listenerInformation, ServiceContext serviceContext, IServiceEventSource eventSource, string eventCategoryName, IConfigurableObjectLoggerOptions options) : base(listenerInformation, serviceContext, eventSource, eventCategoryName, options) { }
public static void Add( this IServiceCollection @this, IServiceHostGenericListenerInformation genericListenerInformation) { if (@this == null) { throw new ArgumentNullException(nameof(@this)); } if (genericListenerInformation == null) { throw new ArgumentNullException(nameof(genericListenerInformation)); } @this.Add(new ServiceDescriptor(typeof(IServiceHostListenerInformation), genericListenerInformation)); @this.Add(new ServiceDescriptor(typeof(IServiceHostGenericListenerInformation), genericListenerInformation)); }
public ServiceHostGenericListenerLoggerProvider( IServiceHostGenericListenerInformation listenerInformation, ServiceContext serviceContext, IServiceEventSource eventSource, IConfigurableObjectLoggerOptions loggerOptions) { this.listenerInformation = listenerInformation ?? throw new ArgumentNullException(nameof(listenerInformation)); this.serviceContext = serviceContext ?? throw new ArgumentNullException(nameof(serviceContext)); this.loggerOptions = loggerOptions ?? throw new ArgumentNullException(nameof(loggerOptions)); this.eventSource = eventSource ?? throw new ArgumentNullException(nameof(eventSource)); }