4

I am migrating from ASP.NET MVC to ASP.NET Core and the later does not have a BeginExecuteCore method in Controller.

Do you know a method in ASP.NET Core Controller that I could use to set Thread.CurrentThread.CurrentUICulture before the Request Action is called?

1 Answer 1

4

After some litle code diving inside of Microsoft.AspNetCore.Mvc package, I found that the class Controller has a couple of methods that help to control the execution of every Request Action.

This are OnActionExecuted and OnActionExecuting. Which run after and before the action execution respectively.

In my case, OnActionExecuting did the trick.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.