1 Star 14 Fork 3

tencentcloud/tencentcloud-sdk-dotnet

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
TbaasClient.cs 26.79 KB
Copy Edit Raw Blame History
tencentcloud authored 2024-11-13 04:46 . release 3.0.1122
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Tbaas.V20180416
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Tbaas.V20180416.Models;
public class TbaasClient : AbstractClient{
private const string endpoint = "tbaas.tencentcloudapi.com";
private const string version = "2018-04-16";
private const string sdkVersion = "SDK_NET_3.0.1122";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public TbaasClient(Credential credential, string region)
: this(credential, region, new ClientProfile { Language = Language.ZH_CN })
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public TbaasClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
SdkVersion = sdkVersion;
}
/// <summary>
/// 批量申请长安链用户签名证书
/// </summary>
/// <param name="req"><see cref="ApplyChainMakerBatchUserCertRequest"/></param>
/// <returns><see cref="ApplyChainMakerBatchUserCertResponse"/></returns>
public Task<ApplyChainMakerBatchUserCertResponse> ApplyChainMakerBatchUserCert(ApplyChainMakerBatchUserCertRequest req)
{
return InternalRequestAsync<ApplyChainMakerBatchUserCertResponse>(req, "ApplyChainMakerBatchUserCert");
}
/// <summary>
/// 批量申请长安链用户签名证书
/// </summary>
/// <param name="req"><see cref="ApplyChainMakerBatchUserCertRequest"/></param>
/// <returns><see cref="ApplyChainMakerBatchUserCertResponse"/></returns>
public ApplyChainMakerBatchUserCertResponse ApplyChainMakerBatchUserCertSync(ApplyChainMakerBatchUserCertRequest req)
{
return InternalRequestAsync<ApplyChainMakerBatchUserCertResponse>(req, "ApplyChainMakerBatchUserCert")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 申请用户证书
/// </summary>
/// <param name="req"><see cref="ApplyUserCertRequest"/></param>
/// <returns><see cref="ApplyUserCertResponse"/></returns>
public Task<ApplyUserCertResponse> ApplyUserCert(ApplyUserCertRequest req)
{
return InternalRequestAsync<ApplyUserCertResponse>(req, "ApplyUserCert");
}
/// <summary>
/// 申请用户证书
/// </summary>
/// <param name="req"><see cref="ApplyUserCertRequest"/></param>
/// <returns><see cref="ApplyUserCertResponse"/></returns>
public ApplyUserCertResponse ApplyUserCertSync(ApplyUserCertRequest req)
{
return InternalRequestAsync<ApplyUserCertResponse>(req, "ApplyUserCert")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取Fabric某区块的详细信息
/// </summary>
/// <param name="req"><see cref="DescribeFabricBlockRequest"/></param>
/// <returns><see cref="DescribeFabricBlockResponse"/></returns>
public Task<DescribeFabricBlockResponse> DescribeFabricBlock(DescribeFabricBlockRequest req)
{
return InternalRequestAsync<DescribeFabricBlockResponse>(req, "DescribeFabricBlock");
}
/// <summary>
/// 获取Fabric某区块的详细信息
/// </summary>
/// <param name="req"><see cref="DescribeFabricBlockRequest"/></param>
/// <returns><see cref="DescribeFabricBlockResponse"/></returns>
public DescribeFabricBlockResponse DescribeFabricBlockSync(DescribeFabricBlockRequest req)
{
return InternalRequestAsync<DescribeFabricBlockResponse>(req, "DescribeFabricBlock")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取Fabric交易的详细信息
/// </summary>
/// <param name="req"><see cref="DescribeFabricTransactionRequest"/></param>
/// <returns><see cref="DescribeFabricTransactionResponse"/></returns>
public Task<DescribeFabricTransactionResponse> DescribeFabricTransaction(DescribeFabricTransactionRequest req)
{
return InternalRequestAsync<DescribeFabricTransactionResponse>(req, "DescribeFabricTransaction");
}
/// <summary>
/// 获取Fabric交易的详细信息
/// </summary>
/// <param name="req"><see cref="DescribeFabricTransactionRequest"/></param>
/// <returns><see cref="DescribeFabricTransactionResponse"/></returns>
public DescribeFabricTransactionResponse DescribeFabricTransactionSync(DescribeFabricTransactionRequest req)
{
return InternalRequestAsync<DescribeFabricTransactionResponse>(req, "DescribeFabricTransaction")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 下载用户证书
/// </summary>
/// <param name="req"><see cref="DownloadUserCertRequest"/></param>
/// <returns><see cref="DownloadUserCertResponse"/></returns>
public Task<DownloadUserCertResponse> DownloadUserCert(DownloadUserCertRequest req)
{
return InternalRequestAsync<DownloadUserCertResponse>(req, "DownloadUserCert");
}
/// <summary>
/// 下载用户证书
/// </summary>
/// <param name="req"><see cref="DownloadUserCertRequest"/></param>
/// <returns><see cref="DownloadUserCertResponse"/></returns>
public DownloadUserCertResponse DownloadUserCertSync(DownloadUserCertRequest req)
{
return InternalRequestAsync<DownloadUserCertResponse>(req, "DownloadUserCert")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查看当前网络下的所有区块列表,分页展示
/// </summary>
/// <param name="req"><see cref="GetBlockListRequest"/></param>
/// <returns><see cref="GetBlockListResponse"/></returns>
public Task<GetBlockListResponse> GetBlockList(GetBlockListRequest req)
{
return InternalRequestAsync<GetBlockListResponse>(req, "GetBlockList");
}
/// <summary>
/// 查看当前网络下的所有区块列表,分页展示
/// </summary>
/// <param name="req"><see cref="GetBlockListRequest"/></param>
/// <returns><see cref="GetBlockListResponse"/></returns>
public GetBlockListResponse GetBlockListSync(GetBlockListRequest req)
{
return InternalRequestAsync<GetBlockListResponse>(req, "GetBlockList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取区块内的交易列表
/// </summary>
/// <param name="req"><see cref="GetBlockTransactionListForUserRequest"/></param>
/// <returns><see cref="GetBlockTransactionListForUserResponse"/></returns>
public Task<GetBlockTransactionListForUserResponse> GetBlockTransactionListForUser(GetBlockTransactionListForUserRequest req)
{
return InternalRequestAsync<GetBlockTransactionListForUserResponse>(req, "GetBlockTransactionListForUser");
}
/// <summary>
/// 获取区块内的交易列表
/// </summary>
/// <param name="req"><see cref="GetBlockTransactionListForUserRequest"/></param>
/// <returns><see cref="GetBlockTransactionListForUserResponse"/></returns>
public GetBlockTransactionListForUserResponse GetBlockTransactionListForUserSync(GetBlockTransactionListForUserRequest req)
{
return InternalRequestAsync<GetBlockTransactionListForUserResponse>(req, "GetBlockTransactionListForUser")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取区块链网络概要
/// </summary>
/// <param name="req"><see cref="GetClusterSummaryRequest"/></param>
/// <returns><see cref="GetClusterSummaryResponse"/></returns>
public Task<GetClusterSummaryResponse> GetClusterSummary(GetClusterSummaryRequest req)
{
return InternalRequestAsync<GetClusterSummaryResponse>(req, "GetClusterSummary");
}
/// <summary>
/// 获取区块链网络概要
/// </summary>
/// <param name="req"><see cref="GetClusterSummaryRequest"/></param>
/// <returns><see cref="GetClusterSummaryResponse"/></returns>
public GetClusterSummaryResponse GetClusterSummarySync(GetClusterSummaryRequest req)
{
return InternalRequestAsync<GetClusterSummaryResponse>(req, "GetClusterSummary")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// Invoke异步调用结果查询
/// </summary>
/// <param name="req"><see cref="GetInvokeTxRequest"/></param>
/// <returns><see cref="GetInvokeTxResponse"/></returns>
public Task<GetInvokeTxResponse> GetInvokeTx(GetInvokeTxRequest req)
{
return InternalRequestAsync<GetInvokeTxResponse>(req, "GetInvokeTx");
}
/// <summary>
/// Invoke异步调用结果查询
/// </summary>
/// <param name="req"><see cref="GetInvokeTxRequest"/></param>
/// <returns><see cref="GetInvokeTxResponse"/></returns>
public GetInvokeTxResponse GetInvokeTxSync(GetInvokeTxRequest req)
{
return InternalRequestAsync<GetInvokeTxResponse>(req, "GetInvokeTx")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取最新交易列表(已废弃)
/// </summary>
/// <param name="req"><see cref="GetLatesdTransactionListRequest"/></param>
/// <returns><see cref="GetLatesdTransactionListResponse"/></returns>
public Task<GetLatesdTransactionListResponse> GetLatesdTransactionList(GetLatesdTransactionListRequest req)
{
return InternalRequestAsync<GetLatesdTransactionListResponse>(req, "GetLatesdTransactionList");
}
/// <summary>
/// 获取最新交易列表(已废弃)
/// </summary>
/// <param name="req"><see cref="GetLatesdTransactionListRequest"/></param>
/// <returns><see cref="GetLatesdTransactionListResponse"/></returns>
public GetLatesdTransactionListResponse GetLatesdTransactionListSync(GetLatesdTransactionListRequest req)
{
return InternalRequestAsync<GetLatesdTransactionListResponse>(req, "GetLatesdTransactionList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取fabric最新交易列表
/// </summary>
/// <param name="req"><see cref="GetLatestTransactionListRequest"/></param>
/// <returns><see cref="GetLatestTransactionListResponse"/></returns>
public Task<GetLatestTransactionListResponse> GetLatestTransactionList(GetLatestTransactionListRequest req)
{
return InternalRequestAsync<GetLatestTransactionListResponse>(req, "GetLatestTransactionList");
}
/// <summary>
/// 获取fabric最新交易列表
/// </summary>
/// <param name="req"><see cref="GetLatestTransactionListRequest"/></param>
/// <returns><see cref="GetLatestTransactionListResponse"/></returns>
public GetLatestTransactionListResponse GetLatestTransactionListSync(GetLatestTransactionListRequest req)
{
return InternalRequestAsync<GetLatestTransactionListResponse>(req, "GetLatestTransactionList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取交易详情
/// </summary>
/// <param name="req"><see cref="GetTransactionDetailForUserRequest"/></param>
/// <returns><see cref="GetTransactionDetailForUserResponse"/></returns>
public Task<GetTransactionDetailForUserResponse> GetTransactionDetailForUser(GetTransactionDetailForUserRequest req)
{
return InternalRequestAsync<GetTransactionDetailForUserResponse>(req, "GetTransactionDetailForUser");
}
/// <summary>
/// 获取交易详情
/// </summary>
/// <param name="req"><see cref="GetTransactionDetailForUserRequest"/></param>
/// <returns><see cref="GetTransactionDetailForUserResponse"/></returns>
public GetTransactionDetailForUserResponse GetTransactionDetailForUserSync(GetTransactionDetailForUserRequest req)
{
return InternalRequestAsync<GetTransactionDetailForUserResponse>(req, "GetTransactionDetailForUser")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 新增交易
/// </summary>
/// <param name="req"><see cref="InvokeRequest"/></param>
/// <returns><see cref="InvokeResponse"/></returns>
public Task<InvokeResponse> Invoke(InvokeRequest req)
{
return InternalRequestAsync<InvokeResponse>(req, "Invoke");
}
/// <summary>
/// 新增交易
/// </summary>
/// <param name="req"><see cref="InvokeRequest"/></param>
/// <returns><see cref="InvokeResponse"/></returns>
public InvokeResponse InvokeSync(InvokeRequest req)
{
return InternalRequestAsync<InvokeResponse>(req, "Invoke")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 调用长安链合约执行交易
/// </summary>
/// <param name="req"><see cref="InvokeChainMakerContractRequest"/></param>
/// <returns><see cref="InvokeChainMakerContractResponse"/></returns>
public Task<InvokeChainMakerContractResponse> InvokeChainMakerContract(InvokeChainMakerContractRequest req)
{
return InternalRequestAsync<InvokeChainMakerContractResponse>(req, "InvokeChainMakerContract");
}
/// <summary>
/// 调用长安链合约执行交易
/// </summary>
/// <param name="req"><see cref="InvokeChainMakerContractRequest"/></param>
/// <returns><see cref="InvokeChainMakerContractResponse"/></returns>
public InvokeChainMakerContractResponse InvokeChainMakerContractSync(InvokeChainMakerContractRequest req)
{
return InternalRequestAsync<InvokeChainMakerContractResponse>(req, "InvokeChainMakerContract")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 调用长安链体验网络合约执行交易
/// </summary>
/// <param name="req"><see cref="InvokeChainMakerDemoContractRequest"/></param>
/// <returns><see cref="InvokeChainMakerDemoContractResponse"/></returns>
public Task<InvokeChainMakerDemoContractResponse> InvokeChainMakerDemoContract(InvokeChainMakerDemoContractRequest req)
{
return InternalRequestAsync<InvokeChainMakerDemoContractResponse>(req, "InvokeChainMakerDemoContract");
}
/// <summary>
/// 调用长安链体验网络合约执行交易
/// </summary>
/// <param name="req"><see cref="InvokeChainMakerDemoContractRequest"/></param>
/// <returns><see cref="InvokeChainMakerDemoContractResponse"/></returns>
public InvokeChainMakerDemoContractResponse InvokeChainMakerDemoContractSync(InvokeChainMakerDemoContractRequest req)
{
return InternalRequestAsync<InvokeChainMakerDemoContractResponse>(req, "InvokeChainMakerDemoContract")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 调用Fabric用户合约执行交易
/// </summary>
/// <param name="req"><see cref="InvokeFabricChaincodeRequest"/></param>
/// <returns><see cref="InvokeFabricChaincodeResponse"/></returns>
public Task<InvokeFabricChaincodeResponse> InvokeFabricChaincode(InvokeFabricChaincodeRequest req)
{
return InternalRequestAsync<InvokeFabricChaincodeResponse>(req, "InvokeFabricChaincode");
}
/// <summary>
/// 调用Fabric用户合约执行交易
/// </summary>
/// <param name="req"><see cref="InvokeFabricChaincodeRequest"/></param>
/// <returns><see cref="InvokeFabricChaincodeResponse"/></returns>
public InvokeFabricChaincodeResponse InvokeFabricChaincodeSync(InvokeFabricChaincodeRequest req)
{
return InternalRequestAsync<InvokeFabricChaincodeResponse>(req, "InvokeFabricChaincode")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询交易
/// </summary>
/// <param name="req"><see cref="QueryRequest"/></param>
/// <returns><see cref="QueryResponse"/></returns>
public Task<QueryResponse> Query(QueryRequest req)
{
return InternalRequestAsync<QueryResponse>(req, "Query");
}
/// <summary>
/// 查询交易
/// </summary>
/// <param name="req"><see cref="QueryRequest"/></param>
/// <returns><see cref="QueryResponse"/></returns>
public QueryResponse QuerySync(QueryRequest req)
{
return InternalRequestAsync<QueryResponse>(req, "Query")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询长安链指定高度区块的交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerBlockTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerBlockTransactionResponse"/></returns>
public Task<QueryChainMakerBlockTransactionResponse> QueryChainMakerBlockTransaction(QueryChainMakerBlockTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerBlockTransactionResponse>(req, "QueryChainMakerBlockTransaction");
}
/// <summary>
/// 查询长安链指定高度区块的交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerBlockTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerBlockTransactionResponse"/></returns>
public QueryChainMakerBlockTransactionResponse QueryChainMakerBlockTransactionSync(QueryChainMakerBlockTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerBlockTransactionResponse>(req, "QueryChainMakerBlockTransaction")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 调用长安链合约查询
/// </summary>
/// <param name="req"><see cref="QueryChainMakerContractRequest"/></param>
/// <returns><see cref="QueryChainMakerContractResponse"/></returns>
public Task<QueryChainMakerContractResponse> QueryChainMakerContract(QueryChainMakerContractRequest req)
{
return InternalRequestAsync<QueryChainMakerContractResponse>(req, "QueryChainMakerContract");
}
/// <summary>
/// 调用长安链合约查询
/// </summary>
/// <param name="req"><see cref="QueryChainMakerContractRequest"/></param>
/// <returns><see cref="QueryChainMakerContractResponse"/></returns>
public QueryChainMakerContractResponse QueryChainMakerContractSync(QueryChainMakerContractRequest req)
{
return InternalRequestAsync<QueryChainMakerContractResponse>(req, "QueryChainMakerContract")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询长安链体验网络指定高度区块的交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerDemoBlockTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerDemoBlockTransactionResponse"/></returns>
public Task<QueryChainMakerDemoBlockTransactionResponse> QueryChainMakerDemoBlockTransaction(QueryChainMakerDemoBlockTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerDemoBlockTransactionResponse>(req, "QueryChainMakerDemoBlockTransaction");
}
/// <summary>
/// 查询长安链体验网络指定高度区块的交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerDemoBlockTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerDemoBlockTransactionResponse"/></returns>
public QueryChainMakerDemoBlockTransactionResponse QueryChainMakerDemoBlockTransactionSync(QueryChainMakerDemoBlockTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerDemoBlockTransactionResponse>(req, "QueryChainMakerDemoBlockTransaction")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 调用长安链体验网络合约查询
/// </summary>
/// <param name="req"><see cref="QueryChainMakerDemoContractRequest"/></param>
/// <returns><see cref="QueryChainMakerDemoContractResponse"/></returns>
public Task<QueryChainMakerDemoContractResponse> QueryChainMakerDemoContract(QueryChainMakerDemoContractRequest req)
{
return InternalRequestAsync<QueryChainMakerDemoContractResponse>(req, "QueryChainMakerDemoContract");
}
/// <summary>
/// 调用长安链体验网络合约查询
/// </summary>
/// <param name="req"><see cref="QueryChainMakerDemoContractRequest"/></param>
/// <returns><see cref="QueryChainMakerDemoContractResponse"/></returns>
public QueryChainMakerDemoContractResponse QueryChainMakerDemoContractSync(QueryChainMakerDemoContractRequest req)
{
return InternalRequestAsync<QueryChainMakerDemoContractResponse>(req, "QueryChainMakerDemoContract")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 通过交易ID查询长安链体验网络交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerDemoTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerDemoTransactionResponse"/></returns>
public Task<QueryChainMakerDemoTransactionResponse> QueryChainMakerDemoTransaction(QueryChainMakerDemoTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerDemoTransactionResponse>(req, "QueryChainMakerDemoTransaction");
}
/// <summary>
/// 通过交易ID查询长安链体验网络交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerDemoTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerDemoTransactionResponse"/></returns>
public QueryChainMakerDemoTransactionResponse QueryChainMakerDemoTransactionSync(QueryChainMakerDemoTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerDemoTransactionResponse>(req, "QueryChainMakerDemoTransaction")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 通过交易ID查询长安链交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerTransactionResponse"/></returns>
public Task<QueryChainMakerTransactionResponse> QueryChainMakerTransaction(QueryChainMakerTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerTransactionResponse>(req, "QueryChainMakerTransaction");
}
/// <summary>
/// 通过交易ID查询长安链交易
/// </summary>
/// <param name="req"><see cref="QueryChainMakerTransactionRequest"/></param>
/// <returns><see cref="QueryChainMakerTransactionResponse"/></returns>
public QueryChainMakerTransactionResponse QueryChainMakerTransactionSync(QueryChainMakerTransactionRequest req)
{
return InternalRequestAsync<QueryChainMakerTransactionResponse>(req, "QueryChainMakerTransaction")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 调用Fabric用户合约查询
/// </summary>
/// <param name="req"><see cref="QueryFabricChaincodeRequest"/></param>
/// <returns><see cref="QueryFabricChaincodeResponse"/></returns>
public Task<QueryFabricChaincodeResponse> QueryFabricChaincode(QueryFabricChaincodeRequest req)
{
return InternalRequestAsync<QueryFabricChaincodeResponse>(req, "QueryFabricChaincode");
}
/// <summary>
/// 调用Fabric用户合约查询
/// </summary>
/// <param name="req"><see cref="QueryFabricChaincodeRequest"/></param>
/// <returns><see cref="QueryFabricChaincodeResponse"/></returns>
public QueryFabricChaincodeResponse QueryFabricChaincodeSync(QueryFabricChaincodeRequest req)
{
return InternalRequestAsync<QueryFabricChaincodeResponse>(req, "QueryFabricChaincode")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// trustsql服务统一接口
/// </summary>
/// <param name="req"><see cref="SrvInvokeRequest"/></param>
/// <returns><see cref="SrvInvokeResponse"/></returns>
public Task<SrvInvokeResponse> SrvInvoke(SrvInvokeRequest req)
{
return InternalRequestAsync<SrvInvokeResponse>(req, "SrvInvoke");
}
/// <summary>
/// trustsql服务统一接口
/// </summary>
/// <param name="req"><see cref="SrvInvokeRequest"/></param>
/// <returns><see cref="SrvInvokeResponse"/></returns>
public SrvInvokeResponse SrvInvokeSync(SrvInvokeRequest req)
{
return InternalRequestAsync<SrvInvokeResponse>(req, "SrvInvoke")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-dotnet.git
git@gitee.com:tencentcloud/tencentcloud-sdk-dotnet.git
tencentcloud
tencentcloud-sdk-dotnet
tencentcloud-sdk-dotnet
master

Search