Exemplo 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);
        }
Exemplo n.º 2
0
 public FluentScope(FluentScopeLogger originator, params IDisposable[] disposables)
 {
     this.originator  = originator;
     this.disposables = disposables;
 }