Ejemplo n.º 1
0
        public SemanticLog(
            IEnumerable <ILogChannel> channels,
            IEnumerable <ILogAppender> appenders,
            IObjectWriterFactory writerFactory)
        {
            Guard.NotNull(channels, nameof(channels));
            Guard.NotNull(appenders, nameof(appenders));
            Guard.NotNull(writerFactory, nameof(writerFactory));

            this.channels      = channels.ToArray();
            this.appenders     = appenders.ToArray();
            this.writerFactory = writerFactory;
        }
Ejemplo n.º 2
0
        public SemanticLog(
            IOptions <SemanticLogOptions> options,
            IEnumerable <ILogChannel> channels,
            IEnumerable <ILogAppender> appenders,
            IObjectWriterFactory writerFactory)
        {
            Guard.NotNull(options);
            Guard.NotNull(channels);
            Guard.NotNull(appenders);
            Guard.NotNull(writerFactory);

            this.channels      = channels.ToArray();
            this.appenders     = appenders.ToArray();
            this.options       = options;
            this.writerFactory = writerFactory;
        }