示例#1
0
 internal LeaseTimeToLiveRequest LeaseTimeToLive(LeaseTimeToLiveRequest leaseTimeToLiveRequest)
 {
     throw new NotImplementedException();
 }
示例#2
0
 public async Task <LeaseTimeToLiveResponse> LeaseTimeToLiveAsync(LeaseTimeToLiveRequest request, Metadata headers = null)
 {
     return(await _balancer.GetConnection().leaseClient.LeaseTimeToLiveAsync(request, headers));
 }
示例#3
0
 /// <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);
示例#4
0
 public LeaseTimeToLiveResponse LeaseTimeToLive(LeaseTimeToLiveRequest request, Metadata headers = null)
 {
     return(_balancer.GetConnection().leaseClient.LeaseTimeToLive(request, headers));
 }
示例#5
0
 /// <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));