aspect-injector icon indicating copy to clipboard operation
aspect-injector copied to clipboard

Investigave attributes injection (same way as interface injections)

Open introspection3 opened this issue 5 years ago • 6 comments

sir,how to add an attribute to a class

introspection3 avatar Apr 23 '19 09:04 introspection3

Hi, Can you please elaborate more on this?

pamidur avatar Apr 23 '19 09:04 pamidur

We have an error when we migrate asp.net webapi to asp.net core (we have to use swagger core , but swagger core need every action explicit HttpMethod binding)

Ambiguous HTTP method for action - Permission.Service.Controllers.RoleController.GetRoleConfigValue (). Actions require an explicit HttpMethod binding for Swagger 2.0

introspection3 avatar Apr 23 '19 09:04 introspection3

Ok, I guess I understand. So you want an api that allows adding attributes to a class(or member) after compilation. Is that correct?

pamidur avatar Apr 23 '19 09:04 pamidur

yes

introspection3 avatar Apr 23 '19 09:04 introspection3

This is an interesting idea. We will investigate it and may be implement in future. For now, unfortunately , aspect injector cannot do it

pamidur avatar Apr 23 '19 09:04 pamidur

ok,thanks all the same

introspection3 avatar Apr 23 '19 09:04 introspection3

Will not be implemented. Same can be achieved by using base classes with inherited attributes

pamidur avatar Jun 13 '23 21:06 pamidur