src/Miles.GreenPipes.Serilog/LogContext/LogContextExtensions.cs
/// <summary>
/// Configures a <see cref="global::Serilog.Context.LogContext"/> around the pipe.
/// </summary>
/// <typeparam name="TContext">The type of the context.</typeparam>
/// <param name="configurator">The configurator.</param>
/// <param name="configure"></param>
Configures a  around the pipe.
Configures a around the pipe .
public static void UseLogContext<TContext>(this IPipeConfigurator<TContext> configurator, Action<ILogContextConfigurator<TContext>> configure = null)
            where TContext : class, PipeContext
        {
            var spec = new LogContextSpecification<TContext>();
            configure?.Invoke(spec);
            configurator.AddPipeSpecification(spec);
        }
public static void UseLogContext < TContext > ( this IPipeConfigurator < TContext > configurator , Action < ILogContextConfigurator < TContext > > configure = null ) where TContext : class , PipeContext { var spec = new LogContextSpecification < TContext > ( ) ; configure ? . Invoke ( spec ) ; configurator . AddPipeSpecification ( spec ) ; }
Configures a  around the pipe.
Configures a around the pipe .
IPipeConfigurator<TContext>
this
configure
Action<ILogContextConfigurator<TContext>>
None
configurator
None
typeparam
The type of the context.
The type of the context .