/// <summary> /// Starts asynchronous cancellation on a long-running operation. The server /// makes a best effort to cancel the operation, but success is not /// guaranteed. If the server doesn't support this method, it returns /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use /// [Operations.GetOperation][google.longrunning.Operations.GetOperation] or /// other methods to check whether the cancellation succeeded or whether the /// operation completed despite cancellation. On successful cancellation, /// the operation is not deleted; instead, it becomes an operation with /// an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, /// corresponding to `Code.CANCELLED`. /// </summary> public virtual AsyncUnaryCall <global::Google.Protobuf.WellKnownTypes.Empty> CancelOperationAsync(global::Google.Longrunning.CancelOperationRequest request, CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_CancelOperation, null, options, request)); }
/// <summary> /// Starts asynchronous cancellation on a long-running operation. The server /// makes a best effort to cancel the operation, but success is not /// guaranteed. If the server doesn't support this method, it returns /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use /// [Operations.GetOperation][google.longrunning.Operations.GetOperation] or /// other methods to check whether the cancellation succeeded or whether the /// operation completed despite cancellation. On successful cancellation, /// the operation is not deleted; instead, it becomes an operation with /// an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, /// corresponding to `Code.CANCELLED`. /// </summary> public virtual AsyncUnaryCall <global::Google.Protobuf.WellKnownTypes.Empty> CancelOperationAsync(global::Google.Longrunning.CancelOperationRequest request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { return(CancelOperationAsync(request, new CallOptions(headers, deadline, cancellationToken))); }
public AsyncUnaryCall<global::Google.Protobuf.Empty> CancelOperationAsync(global::Google.Longrunning.CancelOperationRequest request, CallOptions options) { var call = CreateCall(__Method_CancelOperation, options); return Calls.AsyncUnaryCall(call, request); }
/// <summary> /// Starts asynchronous cancellation on a long-running operation. The server /// makes a best effort to cancel the operation, but success is not /// guaranteed. If the server doesn't support this method, it returns /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use /// [Operations.GetOperation][google.longrunning.Operations.GetOperation] or /// other methods to check whether the cancellation succeeded or whether the /// operation completed despite cancellation. On successful cancellation, /// the operation is not deleted; instead, it becomes an operation with /// an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, /// corresponding to `Code.CANCELLED`. /// </summary> public virtual global::System.Threading.Tasks.Task <global::Google.Protobuf.WellKnownTypes.Empty> CancelOperation(global::Google.Longrunning.CancelOperationRequest request, ServerCallContext context) { throw new RpcException(new Status(StatusCode.Unimplemented, "")); }
public AsyncUnaryCall<global::Google.Protobuf.Empty> CancelOperationAsync(global::Google.Longrunning.CancelOperationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { var call = CreateCall(__Method_CancelOperation, new CallOptions(headers, deadline, cancellationToken)); return Calls.AsyncUnaryCall(call, request); }