-
I'm trying to add into DI custom Requester to implement logging for my application but can't seem to find correct way of doing it. I had few attempts but it doesn't enter the overriden methods, what's the proper way of registering custom requester with overrides from Requester as a base class? Using .Net 6 and latest version of RestEase
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I assume you're using HttpClientFactory? You should be able to do: services.AddRestEaseClient<ISomeApi>("https://api.example.com")
.AddHttpMessageHandler<LoggingRequester>() Where LoggingRequester inherits from |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This will be out in v1.6.1 shortly |
Beta Was this translation helpful? Give feedback.
This will be out in v1.6.1 shortly