Base solution for your next web application
Spring Sale!
Time Offer!
XXdays : XXhrs : XXmin : XXsec
Open Closed

How To "ILogger" in ActionFilter of mvc or web api? #878

wddpct created

I found I can't inject “ILogger” as usual, there is no inject point in actionfilter, can you help me to solve it out

1 Answer(s)
  • 0
    hikalkan created
    Support Team

    You can use IocManager.Instance.Resolve... (see document: <a class="postlink" href=""> ... cIocHelper</a>)

    Or you can use dependency injection and create filter like that: <a class="postlink" href=""> ... ule.cs#L82</a>