custom-action-filter Questions
2
Solved
Here I want to return from the custom action filter without executing the controller action method in asp.net core WEB API.
Below is my requirement with sample code.
public override async Task On...
Trivia asked 26/2, 2019 at 9:57
5
Solved
I am trying to access the Model data passed to the view in the action filter OnActionExecuted. Does anyone know if this is possible?
I am trying to do something like this:
public override void On...
Kinata asked 16/5, 2009 at 16:52
1
Solved
Good day.
I'm trying to use logging by injecting a LoggerFactory in my custom ActionFilterAttribute class but when using the Attribute in one of the controller methods I get an error saying
[CS70...
Humbert asked 19/6, 2018 at 21:25
3
Solved
I have a CustomeAuthorize action filter that forwards the user to signin page if user is not authenticated. I apply this filter to actions or controllers.
[CustumeAuthorize]
public ActionResult M...
Woaded asked 7/5, 2009 at 16:21
1
Solved
I have the following filter attribute, and i can pass an array of strings to the attribute like this [MyAttribute("string1", "string2")].
public class MyAttribute : TypeFilterAttribute
{
private ...
Heelandtoe asked 27/8, 2016 at 12:55
3
Solved
i am facing issue in asp.net mvc custom acitonfilte using structuremap
in my "LogAttribute" class i have setter dependency injection which is coming null when executing the "OnActionExecuted" Metho...
Luettaluevano asked 30/4, 2014 at 11:1
1
© 2022 - 2024 — McMap. All rights reserved.