Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public async Task WithAzureDiscoveryTest(
}),
(conn, builder) =>
{
var setup = new AkkaDiscoveryOptions
var setup = new AzureDiscoveryOptions
{
ConnectionString = conn,
ServiceName = "testService",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -178,7 +178,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery(
/// The builder instance being configured.
/// </param>
/// <param name="configure">
/// An action that modifies an <see cref="AkkaDiscoveryOptions"/> instance, used
/// An action that modifies an <see cref="AzureDiscoveryOptions"/> instance, used
/// to configure Akka.Discovery.Azure.
/// </param>
/// <returns>
Expand All @@ -200,9 +200,9 @@ public static AkkaConfigurationBuilder WithAzureDiscovery(
/// </example>
public static AkkaConfigurationBuilder WithAzureDiscovery(
this AkkaConfigurationBuilder builder,
Action<AkkaDiscoveryOptions> configure)
Action<AzureDiscoveryOptions> configure)
{
var setup = new AkkaDiscoveryOptions();
var setup = new AzureDiscoveryOptions();
configure(setup);
return builder.WithAzureDiscovery(setup);
}
Expand All @@ -216,7 +216,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery(
/// The builder instance being configured.
/// </param>
/// <param name="options">
/// The <see cref="AkkaDiscoveryOptions"/> instance used to configure Akka.Discovery.Azure.
/// The <see cref="AzureDiscoveryOptions"/> instance used to configure Akka.Discovery.Azure.
/// </param>
/// <returns>
/// The same <see cref="AkkaConfigurationBuilder"/> instance originally passed in.
Expand All @@ -237,7 +237,7 @@ public static AkkaConfigurationBuilder WithAzureDiscovery(
/// </example>
public static AkkaConfigurationBuilder WithAzureDiscovery(
this AkkaConfigurationBuilder builder,
AkkaDiscoveryOptions options)
AzureDiscoveryOptions options)
{
options.Apply(builder);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down