Exam 70-486 Topic 15 Question 56 Discussion
Actual exam question for Microsoft's 70-486 exam
Question #: 56
Topic #: 15
Question #: 56
Topic #: 15
You are developing an ASP.NET Core MVC web application. The application is configured to use a Startup class.
The /status action must be tested on each check-in to source control.
You need to test the application.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

The /status action must be tested on each check-in to source control.
You need to test the application.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

Suggested Answer:

Explanation:
Example: Specify the Startup class with the WebHostBuilderExtensions UseStartup<TStartup> method:
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
UseStartup<Startup>()
Build();
}
References: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/startup?view=aspnetcore-2.1
by Daniel at Feb 20, 2024, 01:11 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).