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