Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IManagementClient.GetParameters for a given component and virtual host #330

Merged
merged 4 commits into from
May 27, 2024
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 @@ -270,7 +270,13 @@ namespace EasyNetQ.Management.Client
public static System.Threading.Tasks.Task<EasyNetQ.Management.Client.Model.Parameter> GetParameterAsync(this EasyNetQ.Management.Client.IManagementClient client, EasyNetQ.Management.Client.Model.Vhost vhost, string componentName, string parameterName, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Threading.Tasks.Task<EasyNetQ.Management.Client.Model.Parameter> GetParameterAsync(this EasyNetQ.Management.Client.IManagementClient client, string vhostName, string componentName, string parameterName, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter> GetParameters(this EasyNetQ.Management.Client.IManagementClient client, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter> GetParameters(this EasyNetQ.Management.Client.IManagementClient client, string componentName, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter> GetParameters(this EasyNetQ.Management.Client.IManagementClient client, string componentName, EasyNetQ.Management.Client.Model.Vhost vhost, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter> GetParameters(this EasyNetQ.Management.Client.IManagementClient client, string componentName, string vhostName, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter>> GetParametersAsync(this EasyNetQ.Management.Client.IManagementClient client, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter>> GetParametersAsync(this EasyNetQ.Management.Client.IManagementClient client, string componentName, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter>> GetParametersAsync(this EasyNetQ.Management.Client.IManagementClient client, string componentName, EasyNetQ.Management.Client.Model.Vhost vhost, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Parameter>> GetParametersAsync(this EasyNetQ.Management.Client.IManagementClient client, string componentName, string vhostName, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Permission> GetPermissions(this EasyNetQ.Management.Client.IManagementClient client, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Permission>> GetPermissionsAsync(this EasyNetQ.Management.Client.IManagementClient client, System.Threading.CancellationToken cancellationToken = default) { }
public static System.Collections.Generic.IReadOnlyList<EasyNetQ.Management.Client.Model.Policy> GetPolicies(this EasyNetQ.Management.Client.IManagementClient client, System.Threading.CancellationToken cancellationToken = default) { }
Expand Down
26 changes: 26 additions & 0 deletions Source/EasyNetQ.Management.Client/IManagementClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,32 @@ public static Task<IReadOnlyList<Parameter>> GetParametersAsync(
CancellationToken cancellationToken = default
) => client.GetAsync<IReadOnlyList<Parameter>>(Parameters, cancellationToken);

/// <summary>
/// Get all parameters for a given component on the cluster
/// </summary>
/// <param name="client"></param>
/// <param name="componentName"></param>
/// <param name="cancellationToken"></param>
public static Task<IReadOnlyList<Parameter>> GetParametersAsync(
this IManagementClient client,
string componentName,
CancellationToken cancellationToken = default
) => client.GetAsync<IReadOnlyList<Parameter>>(Parameters / componentName, cancellationToken);

/// <summary>
/// Get all parameters for a given component and virtual host on the cluster
/// </summary>
/// <param name="client"></param>
/// <param name="componentName"></param>
/// <param name="vhostName"></param>
/// <param name="cancellationToken"></param>
public static Task<IReadOnlyList<Parameter>> GetParametersAsync(
this IManagementClient client,
string componentName,
string vhostName,
CancellationToken cancellationToken = default
) => client.GetAsync<IReadOnlyList<Parameter>>(Parameters / componentName / vhostName, cancellationToken);

/// <summary>
/// Creates a parameter on the cluster
/// </summary>
Expand Down
Loading