3

I recently discovered the convenience of using Refit, but after reading through its documentation I was unable to find a way to replace/override an implementation of an interface method that RestService would normally generate.

Does Refit provide a way to do this? Or is there a way to solve such a problem without getting too hacky?

I'm just worried about using Refit all over the place and then half way into a project realizing I can't modify the implementation of a method. It's inevitable that I'll have to break coding standards to meet a requirement and I'd like to know what would be the solution if a situation like this occurs?

Lukas
  • 1,699
  • 1
  • 16
  • 49

1 Answers1

0

Its not exectly what you want, but you can create extension where you call Refit implementation, but before and after call you can add any customization you want. For example, I have use it to reformat response.

Gioalhaz
  • 3
  • 2