diff --git a/src/Aspire.Hosting.AWS/Constants.cs b/src/Aspire.Hosting.AWS/Constants.cs index 662d1dbf68..c15ade83ec 100644 --- a/src/Aspire.Hosting.AWS/Constants.cs +++ b/src/Aspire.Hosting.AWS/Constants.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. namespace Aspire.Hosting.AWS; -internal sealed class Constants +internal static class Constants { /// diff --git a/src/Aspire.Hosting.Azure/Provisioning/UserSecretsPathHelper.cs b/src/Aspire.Hosting.Azure/Provisioning/UserSecretsPathHelper.cs index 66b67299a2..ad562e46be 100644 --- a/src/Aspire.Hosting.Azure/Provisioning/UserSecretsPathHelper.cs +++ b/src/Aspire.Hosting.Azure/Provisioning/UserSecretsPathHelper.cs @@ -8,7 +8,7 @@ namespace Aspire.Hosting.Azure; /// /// Provides helper methods for working with user secrets in a location outside of source control. /// -internal sealed class UserSecretsPathHelper +internal static class UserSecretsPathHelper { internal const string SecretsFileName = "secrets.json"; diff --git a/src/Aspire.Hosting.Testing/DistributedApplicationEntryPointInvoker.cs b/src/Aspire.Hosting.Testing/DistributedApplicationEntryPointInvoker.cs index 5c0ea0608a..6d1190030b 100644 --- a/src/Aspire.Hosting.Testing/DistributedApplicationEntryPointInvoker.cs +++ b/src/Aspire.Hosting.Testing/DistributedApplicationEntryPointInvoker.cs @@ -7,7 +7,7 @@ namespace Aspire.Hosting.Testing; -internal sealed class DistributedApplicationEntryPointInvoker +internal static class DistributedApplicationEntryPointInvoker { // This helpers encapsulates all of the complex logic required to: // 1. Execute the entry point of the specified assembly in a different thread. diff --git a/src/Components/Aspire.Confluent.Kafka/ConfluentKafkaCommon.cs b/src/Components/Aspire.Confluent.Kafka/ConfluentKafkaCommon.cs index e4939ad207..f4e69ef032 100644 --- a/src/Components/Aspire.Confluent.Kafka/ConfluentKafkaCommon.cs +++ b/src/Components/Aspire.Confluent.Kafka/ConfluentKafkaCommon.cs @@ -3,7 +3,7 @@ namespace Aspire.Confluent.Kafka; -internal sealed class ConfluentKafkaCommon +internal static class ConfluentKafkaCommon { public const string MeterName = "Aspire.Confluent.Kafka"; diff --git a/src/Microsoft.Extensions.ServiceDiscovery/Configuration/ConfigurationServiceEndpointProvider.Log.cs b/src/Microsoft.Extensions.ServiceDiscovery/Configuration/ConfigurationServiceEndpointProvider.Log.cs index 48c922a85b..b27c5ea919 100644 --- a/src/Microsoft.Extensions.ServiceDiscovery/Configuration/ConfigurationServiceEndpointProvider.Log.cs +++ b/src/Microsoft.Extensions.ServiceDiscovery/Configuration/ConfigurationServiceEndpointProvider.Log.cs @@ -8,7 +8,7 @@ namespace Microsoft.Extensions.ServiceDiscovery.Configuration; internal sealed partial class ConfigurationServiceEndpointProvider { - private sealed partial class Log + private static partial class Log { [LoggerMessage(1, LogLevel.Debug, "Skipping endpoint resolution for service '{ServiceName}': '{Reason}'.", EventName = "SkippedResolution")] public static partial void SkippedResolution(ILogger logger, string serviceName, string reason); diff --git a/src/Microsoft.Extensions.ServiceDiscovery/PassThrough/PassThroughServiceEndpointProvider.Log.cs b/src/Microsoft.Extensions.ServiceDiscovery/PassThrough/PassThroughServiceEndpointProvider.Log.cs index f9a984cfe4..9f6e9ce0cc 100644 --- a/src/Microsoft.Extensions.ServiceDiscovery/PassThrough/PassThroughServiceEndpointProvider.Log.cs +++ b/src/Microsoft.Extensions.ServiceDiscovery/PassThrough/PassThroughServiceEndpointProvider.Log.cs @@ -7,7 +7,7 @@ namespace Microsoft.Extensions.ServiceDiscovery.PassThrough; internal sealed partial class PassThroughServiceEndpointProvider { - private sealed partial class Log + private static partial class Log { [LoggerMessage(1, LogLevel.Debug, "Using pass-through service endpoint provider for service '{ServiceName}'.", EventName = "UsingPassThrough")] internal static partial void UsingPassThrough(ILogger logger, string serviceName); diff --git a/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcher.Log.cs b/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcher.Log.cs index fce9f667b4..8acaa55ee7 100644 --- a/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcher.Log.cs +++ b/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcher.Log.cs @@ -7,7 +7,7 @@ namespace Microsoft.Extensions.ServiceDiscovery; partial class ServiceEndpointWatcher { - private sealed partial class Log + private static partial class Log { [LoggerMessage(1, LogLevel.Debug, "Resolving endpoints for service '{ServiceName}'.", EventName = "ResolvingEndpoints")] public static partial void ResolvingEndpoints(ILogger logger, string serviceName); diff --git a/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcherFactory.Log.cs b/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcherFactory.Log.cs index 5f4acc8987..449ee6920d 100644 --- a/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcherFactory.Log.cs +++ b/src/Microsoft.Extensions.ServiceDiscovery/ServiceEndpointWatcherFactory.Log.cs @@ -7,7 +7,7 @@ namespace Microsoft.Extensions.ServiceDiscovery; partial class ServiceEndpointWatcherFactory { - private sealed partial class Log + private static partial class Log { [LoggerMessage(1, LogLevel.Debug, "Creating endpoint resolver for service '{ServiceName}' with {Count} providers: {Providers}.", EventName = "CreatingResolver")] public static partial void ServiceEndpointProviderListCore(ILogger logger, string serviceName, int count, string providers); diff --git a/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs b/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs index da9d222241..e4b4f73bdd 100644 --- a/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs +++ b/src/Vendoring/OpenTelemetry.Instrumentation.SqlClient/Implementation/SqlActivitySourceHelper.cs @@ -13,7 +13,7 @@ namespace OpenTelemetry.Instrumentation.SqlClient.Implementation; /// Helper class to hold common properties used by both SqlClientDiagnosticListener on .NET Core /// and SqlEventSourceListener on .NET Framework. /// -internal sealed class SqlActivitySourceHelper +internal static class SqlActivitySourceHelper { public const string MicrosoftSqlServerDatabaseSystemName = "mssql";