Custom Modelbinding and method parameters #1787
Replies: 1 comment
-
A co-worker saw this and let me know that my Refit Interface method needed to have the URL's parameter/value, as it uses the interface method to construct the URL (I thought the URL identified the method, which was like a normal interface/instance). So just adding a like named parameter to the interface method and breaking the link (due to mismatched method signatures) between my Controller and Interface makes it work |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have implemented custom modelbinding for UUID values that will be passed in with each request. because the requests may take this value in one of many places, we implemented the custom model binding and added these properties on the Controller as public properties.
In the Controller method, the signature no longer handles this parameter, as the value is put into the public property, so we just use that method when calling lower code class methods.
Refit Interface
Controller Method
How can I make the URL parameter
clientGuid
populate the Controller propertyClientUniqueId
??This isn't documented anywhere...
Beta Was this translation helpful? Give feedback.
All reactions