From 96b7e68e73d9c93a8c264970bac7cdaff1166908 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Tue, 12 Dec 2023 09:56:13 +1100 Subject: [PATCH] Fix types that shouldn't derive from container resource. (#1337) --- src/Aspire.Hosting/Postgres/PostgresServerResource.cs | 2 +- src/Aspire.Hosting/SqlServer/SqlServerDatabaseResource.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Aspire.Hosting/Postgres/PostgresServerResource.cs b/src/Aspire.Hosting/Postgres/PostgresServerResource.cs index e620e759ed..502c3317ab 100644 --- a/src/Aspire.Hosting/Postgres/PostgresServerResource.cs +++ b/src/Aspire.Hosting/Postgres/PostgresServerResource.cs @@ -10,7 +10,7 @@ namespace Aspire.Hosting.ApplicationModel; /// /// The name of the resource. /// The PostgreSQL server password. -public class PostgresServerResource(string name, string password) : ContainerResource(name), IPostgresParentResource +public class PostgresServerResource(string name, string password) : Resource(name), IPostgresParentResource { public string Password { get; } = password; diff --git a/src/Aspire.Hosting/SqlServer/SqlServerDatabaseResource.cs b/src/Aspire.Hosting/SqlServer/SqlServerDatabaseResource.cs index bc2704db21..34cb4fdf0d 100644 --- a/src/Aspire.Hosting/SqlServer/SqlServerDatabaseResource.cs +++ b/src/Aspire.Hosting/SqlServer/SqlServerDatabaseResource.cs @@ -8,7 +8,7 @@ namespace Aspire.Hosting.ApplicationModel; /// /// The name of the resource. /// The parent SQL Server container resource. -public class SqlServerDatabaseResource(string name, ISqlServerParentResource sqlServerContainer) : ContainerResource(name), ISqlServerParentResource, IResourceWithParent +public class SqlServerDatabaseResource(string name, ISqlServerParentResource sqlServerContainer) : Resource(name), ISqlServerParentResource, IResourceWithParent { /// /// Gets the parent SQL Server container resource.