nclient / NClient

:dizzy: NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Apache License 2.0
43 stars 11 forks source link

Inherit interface attributes #397

Closed Kingmidas74 closed 2 years ago

Kingmidas74 commented 2 years ago

What happened in case of one interface inherits from another which contains any attributes like path, etc.

smolchanovsky commented 2 years ago

The short answer is yes, attributes will be inherited. It is worth noting that the inheritance of attributes belonging to an interface and attributes belonging to methods are different: interfaces inherit attributes by default, and methods inherit only if you add an additional attribute - OverrideAttribute. Perhaps this is not obvious behavior...

smolchanovsky commented 2 years ago

Added to the documentation: https://github.com/nclient/NClient/wiki/Inheritance