Esempio n. 1
0
        public static IFluentScopeLogger WithScope(this ILogger logger, string propertyName, object value)
        {
            if (logger is IFluentScopeLogger scopeLogger)
            {
                scopeLogger.WithScope(propertyName, value);
            }
            else
            {
                scopeLogger = new FluentScopeLogger(logger).WithScope(propertyName, value);
            }

            return(scopeLogger);
        }
 public FluentScope(FluentScopeLogger originator, params IDisposable[] disposables)
 {
     this.originator  = originator;
     this.disposables = disposables;
 }