/// <summary> /// Set the ledger time model. /// In case of failure this method responds with: /// - INVALID_ARGUMENT if arguments are invalid, or the provided configuration generation /// does not match the current active configuration generation. The caller is expected /// to retry by again fetching current time model using 'GetTimeModel', applying changes /// and resubmitting. /// - ABORTED if the request is rejected or times out. Note that a timed out request may /// have still been committed to the ledger. Application should re-query the current /// time model before retrying. /// - UNIMPLEMENTED if this method is not supported by the backing ledger. /// </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::Com.DigitalAsset.Ledger.Api.V1.Admin.SetTimeModelResponse> SetTimeModelAsync(global::Com.DigitalAsset.Ledger.Api.V1.Admin.SetTimeModelRequest request, grpc::CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_SetTimeModel, null, options, request)); }
/// <summary> /// Set the ledger time model. /// In case of failure this method responds with: /// - INVALID_ARGUMENT if arguments are invalid, or the provided configuration generation /// does not match the current active configuration generation. The caller is expected /// to retry by again fetching current time model using 'GetTimeModel', applying changes /// and resubmitting. /// - ABORTED if the request is rejected or times out. Note that a timed out request may /// have still been committed to the ledger. Application should re-query the current /// time model before retrying. /// - UNIMPLEMENTED if this method is not supported by the backing ledger. /// </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::Com.DigitalAsset.Ledger.Api.V1.Admin.SetTimeModelResponse> SetTimeModel(global::Com.DigitalAsset.Ledger.Api.V1.Admin.SetTimeModelRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); }
/// <summary> /// Set the ledger time model. /// In case of failure this method responds with: /// - INVALID_ARGUMENT if arguments are invalid, or the provided configuration generation /// does not match the current active configuration generation. The caller is expected /// to retry by again fetching current time model using 'GetTimeModel', applying changes /// and resubmitting. /// - ABORTED if the request is rejected or times out. Note that a timed out request may /// have still been committed to the ledger. Application should re-query the current /// time model before retrying. /// - UNIMPLEMENTED if this method is not supported by the backing ledger. /// </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::Com.DigitalAsset.Ledger.Api.V1.Admin.SetTimeModelResponse> SetTimeModelAsync(global::Com.DigitalAsset.Ledger.Api.V1.Admin.SetTimeModelRequest request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return(SetTimeModelAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken))); }