internal LeaseTimeToLiveRequest LeaseTimeToLive(LeaseTimeToLiveRequest leaseTimeToLiveRequest) { throw new NotImplementedException(); }
public async Task <LeaseTimeToLiveResponse> LeaseTimeToLiveAsync(LeaseTimeToLiveRequest request, Metadata headers = null) { return(await _balancer.GetConnection().leaseClient.LeaseTimeToLiveAsync(request, headers)); }
/// <summary> /// LeaseTimeToLive retrieves lease information. /// </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 call object.</returns> public async Task <LeaseTimeToLiveResponse> LeaseTimeToLiveAsync(LeaseTimeToLiveRequest request, Grpc.Core.Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default) => await CallEtcdAsync(async (connection) => await connection._leaseClient .LeaseTimeToLiveAsync(request, headers, deadline, cancellationToken)).ConfigureAwait(false);
public LeaseTimeToLiveResponse LeaseTimeToLive(LeaseTimeToLiveRequest request, Metadata headers = null) { return(_balancer.GetConnection().leaseClient.LeaseTimeToLive(request, headers)); }
/// <summary> /// LeaseTimeToLive retrieves lease information. /// </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 LeaseTimeToLiveResponse LeaseTimeToLive(LeaseTimeToLiveRequest request, Grpc.Core.Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default) => CallEtcd((connection) => connection._leaseClient .LeaseTimeToLive(request, headers, deadline, cancellationToken));