protected virtual void NotifyStartupInternal(string[] args) { try { Application.Current.DispatcherUnhandledException += this.Current_DispatcherUnhandledException; StartupPipeline.Run(args); Application.Current.Exit += this.ApplicationExit; } catch (Exception ex) { Log.Error("Error at startup", ex, this); Application.Current.Shutdown(1); } }
public StartupPipelineMiddleware(RequestDelegate next, StartupPipeline pipeline) { _next = next; _pipeline = pipeline; }