From 6d911edcd172b1cb208b7a6a082982f05c9d6e7c Mon Sep 17 00:00:00 2001
From: cKey <35512826+colinin@users.noreply.github.com>
Date: Thu, 12 Jan 2023 10:45:48 +0800
Subject: [PATCH] remove Microsoft.EntityFrameworkCore.Tools package from start
the project
---
...icroService.AuthServer.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
.../AuthServerMigrationsDbContextFactory.cs | 29 -----------------
.../LY.MicroService.AuthServer.csproj | 4 ---
.../LY.MicroService.AuthServer/Program.cs | 6 ----
.../BackendAdminMigrationsDbContextFactory.cs | 30 -----------------
...roService.BackendAdmin.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...ionManagementMigrationsDbContextFactory.cs | 30 -----------------
...LocalizationManagement.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...ormManagementMigrationsDbContextFactory.cs | 29 -----------------
...ice.PlatformManagement.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...altimeMessageMigrationsDbContextFactory.cs | 30 -----------------
...ervice.RealtimeMessage.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...askManagementMigrationsDbContextFactory.cs | 30 -----------------
...Service.TaskManagement.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...oksManagementMigrationsDbContextFactory.cs | 32 -------------------
...ice.WebhooksManagement.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...ice.WorkflowManagement.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...Service.identityServer.HttpApi.Host.csproj | 4 ---
.../Program.cs | 6 ----
...entityServertMigrationsDbContextFactory.cs | 29 -----------------
.../LY.MicroService.IdentityServer.csproj | 4 ---
.../LY.MicroService.identityServer/Program.cs | 6 ----
30 files changed, 349 deletions(-)
delete mode 100644 aspnet-core/services/LY.MicroService.AuthServer/EntityFrameworkCore/AuthServerMigrationsDbContextFactory.cs
delete mode 100644 aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/EntityFrameworkCore/BackendAdminMigrationsDbContextFactory.cs
delete mode 100644 aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/EntityFrameworkCore/LocalizationManagementMigrationsDbContextFactory.cs
delete mode 100644 aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/EntityFrameworkCore/PlatformManagementMigrationsDbContextFactory.cs
delete mode 100644 aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/EntityFrameworkCore/RealtimeMessageMigrationsDbContextFactory.cs
delete mode 100644 aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/EntityFrameworkCore/TaskManagementMigrationsDbContextFactory.cs
delete mode 100644 aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/EntityFrameworkCore/WebhooksManagementMigrationsDbContextFactory.cs
delete mode 100644 aspnet-core/services/LY.MicroService.identityServer/EntityFrameworkCore/IdentityServertMigrationsDbContextFactory.cs
diff --git a/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/LY.MicroService.AuthServer.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/LY.MicroService.AuthServer.HttpApi.Host.csproj
index a547aff4f..f739271bd 100644
--- a/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/LY.MicroService.AuthServer.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/LY.MicroService.AuthServer.HttpApi.Host.csproj
@@ -10,10 +10,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs
index 2775d4256..08d7ce10a 100644
--- a/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.AuthServer/EntityFrameworkCore/AuthServerMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.AuthServer/EntityFrameworkCore/AuthServerMigrationsDbContextFactory.cs
deleted file mode 100644
index e633ffec3..000000000
--- a/aspnet-core/services/LY.MicroService.AuthServer/EntityFrameworkCore/AuthServerMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-using System.IO;
-
-namespace LY.MicroService.AuthServer.EntityFrameworkCore;
-
-public class AuthServerMigrationsDbContextFactory : IDesignTimeDbContextFactory
-{
- public AuthServerMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
- var connectionString = configuration.GetConnectionString("Default");
-
- var builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new AuthServerMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.Development.json", optional: false);
-
- return builder.Build();
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.AuthServer/LY.MicroService.AuthServer.csproj b/aspnet-core/services/LY.MicroService.AuthServer/LY.MicroService.AuthServer.csproj
index 775483dde..72f138d6b 100644
--- a/aspnet-core/services/LY.MicroService.AuthServer/LY.MicroService.AuthServer.csproj
+++ b/aspnet-core/services/LY.MicroService.AuthServer/LY.MicroService.AuthServer.csproj
@@ -24,10 +24,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.AuthServer/Program.cs b/aspnet-core/services/LY.MicroService.AuthServer/Program.cs
index ff28b72df..4fb8e18ed 100644
--- a/aspnet-core/services/LY.MicroService.AuthServer/Program.cs
+++ b/aspnet-core/services/LY.MicroService.AuthServer/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/EntityFrameworkCore/BackendAdminMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/EntityFrameworkCore/BackendAdminMigrationsDbContextFactory.cs
deleted file mode 100644
index afd271840..000000000
--- a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/EntityFrameworkCore/BackendAdminMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System.IO;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-
-namespace LY.MicroService.BackendAdmin.EntityFrameworkCore;
-
-public class BackendAdminMigrationsDbContextFactory : IDesignTimeDbContextFactory
-{
- public BackendAdminMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
-
- var connectionString = configuration.GetConnectionString("Default");
-
- var builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new BackendAdminMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.Development.json", optional: false);
-
- return builder.Build();
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/LY.MicroService.BackendAdmin.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/LY.MicroService.BackendAdmin.HttpApi.Host.csproj
index b661f31cb..3da5478ef 100644
--- a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/LY.MicroService.BackendAdmin.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/LY.MicroService.BackendAdmin.HttpApi.Host.csproj
@@ -14,10 +14,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs
index 5a261d41a..a00fed23c 100644
--- a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs
@@ -55,12 +55,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/EntityFrameworkCore/LocalizationManagementMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/EntityFrameworkCore/LocalizationManagementMigrationsDbContextFactory.cs
deleted file mode 100644
index 4d5e9382e..000000000
--- a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/EntityFrameworkCore/LocalizationManagementMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-using System.IO;
-
-namespace LY.MicroService.LocalizationManagement.EntityFrameworkCore
-{
- public class LocalizationManagementMigrationsDbContextFactory : IDesignTimeDbContextFactory
- {
- public LocalizationManagementMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
- var connectionString = configuration.GetConnectionString("Default");
-
- var builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new LocalizationManagementMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.Development.json", optional: false);
-
- return builder.Build();
- }
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/LY.MicroService.LocalizationManagement.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/LY.MicroService.LocalizationManagement.HttpApi.Host.csproj
index e6b386858..943087712 100644
--- a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/LY.MicroService.LocalizationManagement.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/LY.MicroService.LocalizationManagement.HttpApi.Host.csproj
@@ -10,10 +10,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs
index d4c95df2f..ac8e4e347 100644
--- a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/EntityFrameworkCore/PlatformManagementMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/EntityFrameworkCore/PlatformManagementMigrationsDbContextFactory.cs
deleted file mode 100644
index aca45745f..000000000
--- a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/EntityFrameworkCore/PlatformManagementMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System.IO;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-
-namespace LY.MicroService.PlatformManagement.EntityFrameworkCore;
-
-public class PlatformManagementMigrationsDbContextFactory : IDesignTimeDbContextFactory
-{
- public PlatformManagementMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
- var connectionString = configuration.GetConnectionString("Default");
-
- var builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new PlatformManagementMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.Development.json", optional: false);
-
- return builder.Build();
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/LY.MicroService.PlatformManagement.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/LY.MicroService.PlatformManagement.HttpApi.Host.csproj
index e1ee24ec4..e55a39583 100644
--- a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/LY.MicroService.PlatformManagement.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/LY.MicroService.PlatformManagement.HttpApi.Host.csproj
@@ -10,10 +10,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs
index 445819ec5..023d63470 100644
--- a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/EntityFrameworkCore/RealtimeMessageMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/EntityFrameworkCore/RealtimeMessageMigrationsDbContextFactory.cs
deleted file mode 100644
index 9095ef26b..000000000
--- a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/EntityFrameworkCore/RealtimeMessageMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-using System.IO;
-
-namespace LY.MicroService.RealtimeMessage.EntityFrameworkCore
-{
- public class RealtimeMessageMigrationsDbContextFactory : IDesignTimeDbContextFactory
- {
- public RealtimeMessageMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
- var connectionString = configuration.GetConnectionString("Default");
-
- var builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new RealtimeMessageMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.Development.json", optional: false);
-
- return builder.Build();
- }
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/LY.MicroService.RealtimeMessage.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/LY.MicroService.RealtimeMessage.HttpApi.Host.csproj
index 0e067d558..4d21ca581 100644
--- a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/LY.MicroService.RealtimeMessage.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/LY.MicroService.RealtimeMessage.HttpApi.Host.csproj
@@ -14,10 +14,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs
index c63c8ebd8..819f9fba7 100644
--- a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/EntityFrameworkCore/TaskManagementMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/EntityFrameworkCore/TaskManagementMigrationsDbContextFactory.cs
deleted file mode 100644
index 7ef7887cc..000000000
--- a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/EntityFrameworkCore/TaskManagementMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-using System.IO;
-
-namespace LY.MicroService.TaskManagement.EntityFrameworkCore;
-
-public class TaskManagementMigrationsDbContextFactory : IDesignTimeDbContextFactory
-{
- public TaskManagementMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
- var connectionString = configuration.GetConnectionString("TaskManagement");
-
- var builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new TaskManagementMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.json", optional: false)
- .AddJsonFile("appsettings.Development.json", optional: true);
-
- return builder.Build();
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/LY.MicroService.TaskManagement.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/LY.MicroService.TaskManagement.HttpApi.Host.csproj
index 745d7593b..77b9cfef0 100644
--- a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/LY.MicroService.TaskManagement.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/LY.MicroService.TaskManagement.HttpApi.Host.csproj
@@ -22,10 +22,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs
index 6926956e0..c128e7393 100644
--- a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/EntityFrameworkCore/WebhooksManagementMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/EntityFrameworkCore/WebhooksManagementMigrationsDbContextFactory.cs
deleted file mode 100644
index 88755770b..000000000
--- a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/EntityFrameworkCore/WebhooksManagementMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-using System.IO;
-
-namespace LY.MicroService.WebhooksManagement.EntityFrameworkCore;
-
-public class WebhooksManagementMigrationsDbContextFactory : IDesignTimeDbContextFactory
-{
- public WebhooksManagementMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
- var connectionString = configuration.GetConnectionString("WebhooksManagement");
-
- DbContextOptionsBuilder builder = null;
-
- builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new WebhooksManagementMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.json", optional: false)
- .AddJsonFile("appsettings.Development.json", optional: true);
-
- return builder.Build();
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/LY.MicroService.WebhooksManagement.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/LY.MicroService.WebhooksManagement.HttpApi.Host.csproj
index 85a334ca8..e6240579d 100644
--- a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/LY.MicroService.WebhooksManagement.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/LY.MicroService.WebhooksManagement.HttpApi.Host.csproj
@@ -11,10 +11,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs
index 97a4ef925..0b48c72e9 100644
--- a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/LY.MicroService.WorkflowManagement.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/LY.MicroService.WorkflowManagement.HttpApi.Host.csproj
index 3f6264345..0a0d24f71 100644
--- a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/LY.MicroService.WorkflowManagement.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/LY.MicroService.WorkflowManagement.HttpApi.Host.csproj
@@ -18,10 +18,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs
index d77acded8..41aef61b2 100644
--- a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj
index 334030ab2..fddf04ef2 100644
--- a/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj
@@ -18,10 +18,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs
index 403f33f9a..572f802aa 100644
--- a/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs
+++ b/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());
diff --git a/aspnet-core/services/LY.MicroService.identityServer/EntityFrameworkCore/IdentityServertMigrationsDbContextFactory.cs b/aspnet-core/services/LY.MicroService.identityServer/EntityFrameworkCore/IdentityServertMigrationsDbContextFactory.cs
deleted file mode 100644
index e7fbfcb48..000000000
--- a/aspnet-core/services/LY.MicroService.identityServer/EntityFrameworkCore/IdentityServertMigrationsDbContextFactory.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Design;
-using Microsoft.Extensions.Configuration;
-using System.IO;
-
-namespace LY.MicroService.IdentityServer.EntityFrameworkCore;
-
-public class IdentityServertMigrationsDbContextFactory : IDesignTimeDbContextFactory
-{
- public IdentityServertMigrationsDbContext CreateDbContext(string[] args)
- {
- var configuration = BuildConfiguration();
- var connectionString = configuration.GetConnectionString("Default");
-
- var builder = new DbContextOptionsBuilder()
- .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString));
-
- return new IdentityServertMigrationsDbContext(builder.Options);
- }
-
- private static IConfigurationRoot BuildConfiguration()
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(Directory.GetCurrentDirectory())
- .AddJsonFile("appsettings.Development.json", optional: false);
-
- return builder.Build();
- }
-}
diff --git a/aspnet-core/services/LY.MicroService.identityServer/LY.MicroService.IdentityServer.csproj b/aspnet-core/services/LY.MicroService.identityServer/LY.MicroService.IdentityServer.csproj
index 75ded82c0..ef7fa1c3b 100644
--- a/aspnet-core/services/LY.MicroService.identityServer/LY.MicroService.IdentityServer.csproj
+++ b/aspnet-core/services/LY.MicroService.identityServer/LY.MicroService.IdentityServer.csproj
@@ -24,10 +24,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
diff --git a/aspnet-core/services/LY.MicroService.identityServer/Program.cs b/aspnet-core/services/LY.MicroService.identityServer/Program.cs
index 7e229f95e..b7f1f9f0d 100644
--- a/aspnet-core/services/LY.MicroService.identityServer/Program.cs
+++ b/aspnet-core/services/LY.MicroService.identityServer/Program.cs
@@ -54,12 +54,6 @@ public class Program
}
catch (Exception ex)
{
- var type = ex.GetType().Name;
- if (type.Equals("StopTheHostException", StringComparison.Ordinal))
- {
- throw;
- }
-
Log.Fatal(ex, "Host terminated unexpectedly!");
Console.WriteLine("Host terminated unexpectedly!");
Console.WriteLine(ex.ToString());