C# Класс NContext.Extensions.Logging.LogManagerBuilder

Defines a fluent builder for configuring a logging application component.
Наследование: ApplicationComponentConfigurationBuilderBase
Показать файл Открыть проект

Открытые методы

Метод Описание
AddLogTarget ( Func logTargetFactory ) : LogManagerBuilder

Adds the log target.

LogManagerBuilder ( ApplicationConfigurationBuilder applicationConfigurationBuilder ) : System

Initializes a new instance of the ApplicationComponentConfigurationBuilderBase class.

SetMaxDegreeOfParallelism ( Int32 maxDegreeOfParallelism ) : LogManagerBuilder

Sets the max degree of parallelism which the LogManager will use to broadcast log entries to it's ILogTarget collection. Defaults to Environment.ProcessorCount.

Защищенные методы

Метод Описание
Setup ( ) : void

Applies the component configuration with the ApplicationConfigurationBase.

Описание методов

AddLogTarget() публичный Метод

Adds the log target.
public AddLogTarget ( Func logTargetFactory ) : LogManagerBuilder
logTargetFactory Func The log target factory.
Результат LogManagerBuilder

LogManagerBuilder() публичный Метод

Initializes a new instance of the ApplicationComponentConfigurationBuilderBase class.
public LogManagerBuilder ( ApplicationConfigurationBuilder applicationConfigurationBuilder ) : System
applicationConfigurationBuilder ApplicationConfigurationBuilder The application configuration.
Результат System

SetMaxDegreeOfParallelism() публичный Метод

Sets the max degree of parallelism which the LogManager will use to broadcast log entries to it's ILogTarget collection. Defaults to Environment.ProcessorCount.
public SetMaxDegreeOfParallelism ( Int32 maxDegreeOfParallelism ) : LogManagerBuilder
maxDegreeOfParallelism System.Int32 The max degree of parallelism.
Результат LogManagerBuilder

Setup() защищенный Метод

Applies the component configuration with the ApplicationConfigurationBase.
protected Setup ( ) : void
Результат void