Base solution for your next web application
Open Closed

Filter Injection #1964


User avatar
0
korigoth created

Hey,

I want to create a global filter that will push in the ViewBag a setting value of the user (is menu-collapsed)

How can i inject ISettingManager in my filter ?

Thx in advance

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Just derive your action filter from ITransientDependency and injecy ISettingManager into it.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)