R
R
Roman Zhidkov2016-04-05 10:49:10
ASP.NET
Roman Zhidkov, 2016-04-05 10:49:10

Why does Index() fire twice?

I have VS 2015 Community UP1, ASP.NET5 MVC6. When creating a new project, the HomeController class is created by default, where there is

public IActionResult Index()
 {
       return View();
 }

If we put a breakpoint on return View(), then we will fly there twice, WHY?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2016-04-05
@VigVam

Well, you can have whatever you want in any configuration, as a rule, this does not play a special role. Let's clarify the sequence of actions - you deploy the application, turn on debugging, open the default page and you hit the breakpoint twice? Or do you take some other steps that you decided not to mention?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question