示例#1
0
 /// <summary>
 /// Lock acquires a distributed shared lock on a given named lock.
 /// On success, it will return a unique key that exists so long as the
 /// lock is held by the caller. This key can be used in conjunction with
 /// transactions to safely ensure updates to etcd only occur while holding
 /// lock ownership. The lock is held until Unlock is called on the key or the
 /// lease associate with the owner expires.
 /// </summary>
 /// <param name="request">The request received from the client.</param>
 /// <param name="context">The context of the server-side call handler being invoked.</param>
 /// <returns>The response to send back to the client (wrapped by a task).</returns>
 public virtual global::System.Threading.Tasks.Task <global::V3Lockpb.LockResponse> Lock(global::V3Lockpb.LockRequest request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
示例#2
0
 /// <summary>
 /// Lock acquires a distributed shared lock on a given named lock.
 /// On success, it will return a unique key that exists so long as the
 /// lock is held by the caller. This key can be used in conjunction with
 /// transactions to safely ensure updates to etcd only occur while holding
 /// lock ownership. The lock is held until Unlock is called on the key or the
 /// lease associate with the owner expires.
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="options">The options for the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncUnaryCall <global::V3Lockpb.LockResponse> LockAsync(global::V3Lockpb.LockRequest request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_Lock, null, options, request));
 }
示例#3
0
 /// <summary>
 /// Lock acquires a distributed shared lock on a given named lock.
 /// On success, it will return a unique key that exists so long as the
 /// lock is held by the caller. This key can be used in conjunction with
 /// transactions to safely ensure updates to etcd only occur while holding
 /// lock ownership. The lock is held until Unlock is called on the key or the
 /// lease associate with the owner expires.
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="options">The options for the call.</param>
 /// <returns>The response received from the server.</returns>
 public virtual global::V3Lockpb.LockResponse Lock(global::V3Lockpb.LockRequest request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_Lock, null, options, request));
 }
示例#4
0
 /// <summary>
 /// Lock acquires a distributed shared lock on a given named lock.
 /// On success, it will return a unique key that exists so long as the
 /// lock is held by the caller. This key can be used in conjunction with
 /// transactions to safely ensure updates to etcd only occur while holding
 /// lock ownership. The lock is held until Unlock is called on the key or the
 /// lease associate with the owner expires.
 /// </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 virtual grpc::AsyncUnaryCall <global::V3Lockpb.LockResponse> LockAsync(global::V3Lockpb.LockRequest request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
 {
     return(LockAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
示例#5
0
 /// <summary>
 /// Lock acquires a distributed shared lock on a given named lock.
 /// On success, it will return a unique key that exists so long as the
 /// lock is held by the caller. This key can be used in conjunction with
 /// transactions to safely ensure updates to etcd only occur while holding
 /// lock ownership. The lock is held until Unlock is called on the key or the
 /// lease associate with the owner expires.
 /// </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 virtual global::V3Lockpb.LockResponse Lock(global::V3Lockpb.LockRequest request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Lock(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }