/* 此代码由Rpc工具直接生成,非必要请不要修改此处代码 */ #pragma warning disable using System; using TouchSocket.Core; using TouchSocket.Sockets; using TouchSocket.Rpc; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Threading.Tasks; namespace WebApiProxy { public interface IApiServer:TouchSocket.Rpc.IRemoteServer { /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoInCenterStart(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 Task getScanInfoInCenterStartAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoInCenterStop(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 Task getScanInfoInCenterStopAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoOutCenterStart(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 Task getScanInfoOutCenterStartAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoOutCenterStop(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 Task getScanInfoOutCenterStopAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default); } public class ApiServer :IApiServer { public ApiServer(IRpcClient client) { this.Client=client; } public IRpcClient Client{get;private set; } /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoInCenterStart(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)Client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstart?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public async Task getScanInfoInCenterStartAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await Client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstart?messageHeader={0}",invokeOption, parameters); } /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoInCenterStop(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)Client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstop?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public async Task getScanInfoInCenterStopAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await Client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstop?messageHeader={0}",invokeOption, parameters); } /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoOutCenterStart(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)Client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstart?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public async Task getScanInfoOutCenterStartAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await Client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstart?messageHeader={0}",invokeOption, parameters); } /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoOutCenterStop(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)Client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstop?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public async Task getScanInfoOutCenterStopAsync(System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) { if(Client==null) { throw new RpcException("IRpcClient为空,请先初始化或者进行赋值"); } object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await Client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstop?messageHeader={0}",invokeOption, parameters); } } public static class ApiServerExtensions { /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public static SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoInCenterStart(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstart?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public static async Task getScanInfoInCenterStartAsync(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstart?messageHeader={0}",invokeOption, parameters); } /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public static SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoInCenterStop(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstop?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public static async Task getScanInfoInCenterStopAsync(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.InStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfoincenterstop?messageHeader={0}",invokeOption, parameters); } /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public static SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoOutCenterStart(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstart?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public static async Task getScanInfoOutCenterStartAsync(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstart?messageHeader={0}",invokeOption, parameters); } /// ///无注释信息 /// /// 调用超时 /// Rpc调用异常 /// 其他异常 public static SlnMesnac.RfidUpload.Model.apiParam.ApiResult getScanInfoOutCenterStop(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; SlnMesnac.RfidUpload.Model.apiParam.ApiResult returnData=(SlnMesnac.RfidUpload.Model.apiParam.ApiResult)client.Invoke(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstop?messageHeader={0}",invokeOption, parameters); return returnData; } /// ///无注释信息 /// public static async Task getScanInfoOutCenterStopAsync(this TClient client,System.String messageHeader,SlnMesnac.RfidUpload.Model.apiParam.OutStoreParam containerRegisterQuery,IInvokeOption invokeOption = default) where TClient: TouchSocket.WebApi.IWebApiClientBase{ object[] parameters = new object[]{messageHeader,containerRegisterQuery}; return (SlnMesnac.RfidUpload.Model.apiParam.ApiResult) await client.InvokeAsync(typeof(SlnMesnac.RfidUpload.Model.apiParam.ApiResult),"POST:/apiserver/getscaninfooutcenterstop?messageHeader={0}",invokeOption, parameters); } } }