Browse Source
Merge pull request #14683 from abpframework/HostAbortedException
Rename `StopTheHostException` to `HostAbortedException`.
pull/14684/head
liangshiwei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
6 additions and
6 deletions
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server.Mongo/Program.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Program.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host.Mongo/Program.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Program.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc.Mongo/Program.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/Program.cs
|
|
|
@ -55,7 +55,7 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
@ -55,7 +55,7 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
@ -55,7 +55,7 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ public class Program |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) |
|
|
|
if (ex is HostAbortedException) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
|