Browse Source

Merge pull request #14683 from abpframework/HostAbortedException

Rename `StopTheHostException` to `HostAbortedException`.
pull/14684/head
liangshiwei 4 years ago
committed by GitHub
parent
commit
43ca6d0fce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server.Mongo/Program.cs
  2. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Program.cs
  3. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host.Mongo/Program.cs
  4. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Program.cs
  5. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc.Mongo/Program.cs
  6. 2
      templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/Program.cs

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server.Mongo/Program.cs

@ -55,7 +55,7 @@ public class Program
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) if (ex is HostAbortedException)
{ {
throw; throw;
} }

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Program.cs

@ -60,7 +60,7 @@ public class Program
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) if (ex is HostAbortedException)
{ {
throw; throw;
} }

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host.Mongo/Program.cs

@ -55,7 +55,7 @@ public class Program
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) if (ex is HostAbortedException)
{ {
throw; throw;
} }

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Program.cs

@ -60,7 +60,7 @@ public class Program
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) if (ex is HostAbortedException)
{ {
throw; throw;
} }

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc.Mongo/Program.cs

@ -55,7 +55,7 @@ public class Program
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) if (ex is HostAbortedException)
{ {
throw; throw;
} }

2
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/Program.cs

@ -60,7 +60,7 @@ public class Program
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) if (ex is HostAbortedException)
{ {
throw; throw;
} }

Loading…
Cancel
Save