diff --git a/src/discovery/azure/Akka.Discovery.Azure.Tests/HostingSpecs.cs b/src/discovery/azure/Akka.Discovery.Azure.Tests/HostingSpecs.cs index c21855a34..aff9baaed 100644 --- a/src/discovery/azure/Akka.Discovery.Azure.Tests/HostingSpecs.cs +++ b/src/discovery/azure/Akka.Discovery.Azure.Tests/HostingSpecs.cs @@ -110,7 +110,7 @@ public async Task WithAzureDiscoveryTest( }), (conn, builder) => { - var setup = new AkkaDiscoveryOptions + var setup = new AzureDiscoveryOptions { ConnectionString = conn, ServiceName = "testService", diff --git a/src/discovery/azure/Akka.Discovery.Azure/AkkaHostingExtensions.cs b/src/discovery/azure/Akka.Discovery.Azure/AkkaHostingExtensions.cs index 80ce8308d..7eb11ca20 100644 --- a/src/discovery/azure/Akka.Discovery.Azure/AkkaHostingExtensions.cs +++ b/src/discovery/azure/Akka.Discovery.Azure/AkkaHostingExtensions.cs @@ -72,7 +72,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery( bool? readOnly = null, bool isDefaultPlugin = true) { - var options = new AkkaDiscoveryOptions + var options = new AzureDiscoveryOptions { IsDefaultPlugin = isDefaultPlugin, ConfigPath = discoveryId, @@ -154,7 +154,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery( bool isDefaultPlugin = true) { if (azureCredential == null) throw new ArgumentNullException(nameof(azureCredential)); - var options = new AkkaDiscoveryOptions + var options = new AzureDiscoveryOptions { IsDefaultPlugin = isDefaultPlugin, ConfigPath = discoveryId, @@ -178,7 +178,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery( /// The builder instance being configured. /// /// - /// An action that modifies an instance, used + /// An action that modifies an instance, used /// to configure Akka.Discovery.Azure. /// /// @@ -200,9 +200,9 @@ public static AkkaConfigurationBuilder WithAzureDiscovery( /// public static AkkaConfigurationBuilder WithAzureDiscovery( this AkkaConfigurationBuilder builder, - Action configure) + Action configure) { - var setup = new AkkaDiscoveryOptions(); + var setup = new AzureDiscoveryOptions(); configure(setup); return builder.WithAzureDiscovery(setup); } @@ -216,7 +216,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery( /// The builder instance being configured. /// /// - /// The instance used to configure Akka.Discovery.Azure. + /// The instance used to configure Akka.Discovery.Azure. /// /// /// The same instance originally passed in. @@ -237,7 +237,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery( /// public static AkkaConfigurationBuilder WithAzureDiscovery( this AkkaConfigurationBuilder builder, - AkkaDiscoveryOptions options) + AzureDiscoveryOptions options) { options.Apply(builder); diff --git a/src/discovery/azure/Akka.Discovery.Azure/AkkaDiscoveryOptions.cs b/src/discovery/azure/Akka.Discovery.Azure/AzureDiscoveryOptions.cs similarity index 97% rename from src/discovery/azure/Akka.Discovery.Azure/AkkaDiscoveryOptions.cs rename to src/discovery/azure/Akka.Discovery.Azure/AzureDiscoveryOptions.cs index e666a6cf6..18c85bddb 100644 --- a/src/discovery/azure/Akka.Discovery.Azure/AkkaDiscoveryOptions.cs +++ b/src/discovery/azure/Akka.Discovery.Azure/AzureDiscoveryOptions.cs @@ -15,7 +15,10 @@ namespace Akka.Discovery.Azure; -public class AkkaDiscoveryOptions: IDiscoveryOptions +[Obsolete("Class name typo, use AzureDiscoveryOptions class instead. Since 1.5.44, will be removed in v1.6")] +public class AkkaDiscoveryOptions : AzureDiscoveryOptions; + +public class AzureDiscoveryOptions: IDiscoveryOptions { public string ConfigPath { get; set; } = "azure";