You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
To simplify message inteception, analysis or logging, and doing it in a centralized manner, would be ideal to be able to override the InterceptRequest and InterceptResponse methods on the ApiClient.cs generated code.
Describe the solution you'd like
Add the possibility to override the message interception
Describe alternatives you've considered
Using a public virtual method to do so; I've edited the mustache file to do it on my end, as the client is generated often and editing it each time is painful.
Additional context
This is what I ended up doing for now, better alternatives are welcome :)
publicclassLocalApiClient:ApiClient{publicoverridevoidInterceptRequest(RestRequestrequest){// my custom analyitics here}publicoverridevoidInterceptResponse(RestRequestrequest,RestResponseresponse){// my custom analyitics here}}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
To simplify message inteception, analysis or logging, and doing it in a centralized manner, would be ideal to be able to override the
InterceptRequest
andInterceptResponse
methods on theApiClient.cs
generated code.Describe the solution you'd like
Add the possibility to override the message interception
Describe alternatives you've considered
Using a
public virtual
method to do so; I've edited the mustache file to do it on my end, as the client is generated often and editing it each time is painful.Additional context
This is what I ended up doing for now, better alternatives are welcome :)
Added the following on my mustache files
Then on my inherited
ApiClient
, I can do :The text was updated successfully, but these errors were encountered: