Logging Behavior

Logging behavior in the MediatR pipeline within RCommon.

The logging behavior is useful any time you want to log an incoming request in the MediatR pipeline. It can be added by doing this in your dependency injection section:

protected void InitializeRCommon(IServiceCollection services)
{

    ConfigureRCommon.Using(new DotNetCoreContainerAdapter(Services))
        .AddLoggingToMediatorPipeline());
}

Last updated