Skip to content

Commit

Permalink
Merge pull request shubhamranjan#191 from shubhamranjan/method-name-fix
Browse files Browse the repository at this point in the history
Fix shubhamranjan#183 - Method names
shubhamranjan authored Oct 19, 2023

Verified

This commit was signed with the committer’s verified signature.
johnny243 Johnny A.
2 parents d384ab1 + ea137d8 commit a6af8d6
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dotnet-etcd/authClient.cs
Original file line number Diff line number Diff line change
@@ -311,14 +311,14 @@ public AuthRoleGetResponse RoleGet(AuthRoleGetRequest request, Grpc.Core.Metadat
.RoleGet(request, headers, deadline, cancellationToken));

/// <summary>
/// RoleGetASync gets detailed role information in async
/// RoleGetAsync gets detailed role information in async
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
/// <param name="cancellationToken">An optional token for canceling the call.</param>
/// <returns>The response received from the server.</returns>
public async Task<AuthRoleGetResponse> RoleGetASync(AuthRoleGetRequest request,
public async Task<AuthRoleGetResponse> RoleGetAsync(AuthRoleGetRequest request,
Grpc.Core.Metadata headers = null, DateTime? deadline = null,
CancellationToken cancellationToken = default) => await CallEtcdAsync(async (connection) => await connection._authClient
.RoleGetAsync(request, headers, deadline, cancellationToken)).ConfigureAwait(false);
4 changes: 2 additions & 2 deletions dotnet-etcd/interfaces/IEtcdClient.cs
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ public interface IEtcdClient
AuthRoleDeleteResponse RoleDelete(AuthRoleDeleteRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
Task<AuthRoleDeleteResponse> RoleDeleteAsync(AuthRoleDeleteRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
AuthRoleGetResponse RoleGet(AuthRoleGetRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
Task<AuthRoleGetResponse> RoleGetASync(AuthRoleGetRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
Task<AuthRoleGetResponse> RoleGetAsync(AuthRoleGetRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
AuthRoleGrantPermissionResponse RoleGrantPermission(AuthRoleGrantPermissionRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
Task<AuthRoleGrantPermissionResponse> RoleGrantPermissionAsync(AuthRoleGrantPermissionRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
AuthRoleListResponse RoleList(AuthRoleListRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
@@ -91,7 +91,7 @@ public interface IEtcdClient
Task Snapshot(SnapshotRequest request, Action<SnapshotResponse> method, CancellationToken cancellationToken, Grpc.Core.Metadata headers = null, DateTime? deadline = null);
Task Snapshot(SnapshotRequest request, Action<SnapshotResponse>[] methods, CancellationToken cancellationToken, Grpc.Core.Metadata headers = null, DateTime? deadline = null);
StatusResponse Status(StatusRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
Task<StatusResponse> StatusASync(StatusRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
Task<StatusResponse> StatusAsync(StatusRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
TxnResponse Transaction(TxnRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
Task<TxnResponse> TransactionAsync(TxnRequest request, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
UnlockResponse Unlock(string key, Grpc.Core.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default);
2 changes: 1 addition & 1 deletion dotnet-etcd/maintenanceClient.cs
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ public StatusResponse Status(StatusRequest request, Grpc.Core.Metadata headers =
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
/// <param name="cancellationToken">An optional token for canceling the call.</param>
/// <returns>Status response</returns>
public async Task<StatusResponse> StatusASync(StatusRequest request, Grpc.Core.Metadata headers = null,
public async Task<StatusResponse> StatusAsync(StatusRequest request, Grpc.Core.Metadata headers = null,
DateTime? deadline = null,
CancellationToken cancellationToken = default) => await CallEtcdAsync(async (connection) => await connection._maintenanceClient
.StatusAsync(request, headers, deadline, cancellationToken)).ConfigureAwait(false);

0 comments on commit a6af8d6

Please sign in to comment.