You can enter dependencies in the postsharp attribute using a structure map

I am using a structural map for dependency injection, now I also want to use postharp for some authorization checking at my service level. because my service level has all repositories embedded, is there a way I can insert or pass these repositories to the postsharp attribute to query sql and provide authorization?

+3
source share
1 answer

I never used PostSharp - is the code executed in the PostSharp attributes at runtime or during the compilation phase before compiling?

, (ObjectFactory.GetInstance).

0

Source: https://habr.com/ru/post/1775823/


All Articles