How can i use dependency injection in my custom attribute? Hi,i am writing an custom attribute and i need use some interface method on my custom attribute . so need to build contractor for inject my service(interface), if i do this when I want to use my attribute, it requires an input of that interface type, what can i do?
To be honest, I have no idea how to solve this problem.