public ServiceHostAspNetCoreListenerLogger(
     IServiceHostAspNetCoreListenerInformation listenerInformation,
     ServiceContext serviceContext,
     IServiceEventSource eventSource,
     string eventCategoryName,
     IConfigurableObjectLoggerOptions options)
     : base(listenerInformation, serviceContext, eventSource, eventCategoryName, options)
 {
 }
Ejemplo n.º 2
0
        public static void Add(
            this IServiceCollection @this,
            IServiceHostAspNetCoreListenerInformation aspNetCoreListenerInformation)
        {
            if (@this == null)
            {
                throw new ArgumentNullException(nameof(@this));
            }

            if (aspNetCoreListenerInformation == null)
            {
                throw new ArgumentNullException(nameof(aspNetCoreListenerInformation));
            }

            @this.Add(new ServiceDescriptor(typeof(IServiceHostListenerInformation), aspNetCoreListenerInformation));
            @this.Add(new ServiceDescriptor(typeof(IServiceHostAspNetCoreListenerInformation), aspNetCoreListenerInformation));
        }
Ejemplo n.º 3
0
        public ServiceHostAspNetCoreListenerLoggerProvider(
            IServiceHostAspNetCoreListenerInformation 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));
        }