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);
     }
 }
示例#2
0
 public StartupPipelineMiddleware(RequestDelegate next, StartupPipeline pipeline)
 {
     _next     = next;
     _pipeline = pipeline;
 }
 public StartupPipelineMiddleware(RequestDelegate next, StartupPipeline pipeline)
 {
     _next = next;
     _pipeline = pipeline;
 }