PrepAway - Latest Free Exam Questions & Answers

You develop a new ASP.NET MVC web application.

HOTSPOT
You develop a new ASP.NET MVC web application. The application is hosted in an Azure Web Role. It
includes the following code. Line numbers are included for reference only.


For each of the following statements, select Yes if the statement is true. Otherwise, select No.

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
The Right Way to Handle Azure OnStop Events
http://azure.microsoft.com/blog/2013/01/14/the‐right‐way‐to‐handle‐azure‐onstop‐events/

3 Comments on “You develop a new ASP.NET MVC web application.

  1. kasp says:

    Didn’t find the second. But the first and the third look good:
    “The code above checks the ASP.NET request’s current counter. As long as there are requests, the OnStop method calls Sleep to delay the shutdown. Once the current request’s counter drops to zero, OnStop returns, which initiates shutdown. Should the web server be so busy that the pending requests cannot be completed in 5 minutes, the application is shut down anyway.”

    https://azure.microsoft.com/en-gb/blog/the-right-way-to-handle-azure-onstop-events/




    3



    0
  2. eomeron says:

    For the second
    “If an exception occurs within one of the lifecycle methods, Azure will raise the UnhandledException event, and then the process is terminated. After your role has been taken offline, it will be restarted by Azure. When an unhandled exception occurs, the Stopping event is not raised, and the OnStop method is not called.”

    source:
    https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-role-lifecycle-dotnet




    6



    0

Leave a Reply