/// <summary> /// Sets <see cref="AppConfig.CancellationToken"/> and cancels the token on /// <see cref="Console.CancelKeyPress"/>, <see cref="AppDomain.ProcessExit"/> and /// <see cref="AppDomain.UnhandledException"/> if <see cref="UnhandledExceptionEventArgs.IsTerminating"/> is true.<br/> /// Once cancelled, the pipelines will not progress to the next step. /// </summary> public static AppRunner UseCancellationHandlers(this AppRunner appRunner) { return(CancellationMiddleware.UseCancellationHandlers(appRunner)); }