jbogard / MediatR

Simple, unambitious mediator implementation in .NET
Apache License 2.0
10.84k stars 1.15k forks source link

I have problem with IRequestPreProcessor pipeline #1005

Closed shirin-monzavi closed 4 months ago

shirin-monzavi commented 4 months ago

Hello, I have two problems. Firstly, I need to write log and my logger is specific for us.

private readonly ILoggerProvider<GetBalanceQueryHandler> _logger;

GetBalanceQueryHandler is type of the handler and i want to use IRequestPreProcessor.

when i inject ILoggerProvider I cannot get the type of handler.

Note: GetBalanceQueryHandler is a sample and for every scenario is different.

Secondly, I want to write some log for specific handlers how could i deal with?

I will look forward hearing you.

I really appreciate you in advance.