Microsoft.Azure.WebJobs.Script.WebHost.WebScriptHostExceptionHandler.OnUnhandledExceptionAsync C# (CSharp) Method

OnUnhandledExceptionAsync() public method

public OnUnhandledExceptionAsync ( ExceptionDispatchInfo exceptionInfo ) : System.Threading.Tasks.Task
exceptionInfo System.Runtime.ExceptionServices.ExceptionDispatchInfo
return System.Threading.Tasks.Task
        public Task OnUnhandledExceptionAsync(ExceptionDispatchInfo exceptionInfo)
        {
            LogErrorAndFlush("An unhandled exception has occurred. Host is shutting down.", exceptionInfo.SourceException);
            HostingEnvironment.InitiateShutdown();
            return Task.CompletedTask;
        }