Browse Source
Merge pull request #14935 from abpframework/HostAbortedException
Ignore `HostAbortedException` in `app` and `module` template.
pull/14936/head
liangshiwei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with
65 additions and
0 deletions
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/Program.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server.Tiered/Program.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/Program.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Host/Program.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/Program.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host/Program.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/Program.cs
-
templates/console/src/MyCompanyName.MyProjectName/Program.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/Program.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Server.Host/Program.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host/Program.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Host/Program.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Program.cs
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "MyCompanyName.MyProjectName.AuthServer terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -49,6 +49,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -40,6 +40,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -43,6 +43,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
@ -43,6 +43,11 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
Log.Fatal(ex, "Host terminated unexpectedly!"); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|