ABBWebApiServer 方法 |
ABBWebApiServer 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Close |
关闭服务器 (继承自 HttpServer。)Shut down the server | |
Equals | (继承自 Object。) | |
Finalize | (继承自 Object。) | |
GetAllRpcApiInfo |
获取当前所有注册的RPC接口信息,将返回一个数据列表。 (继承自 HttpServer。)Get all currently registered RPC interface information, and a data list will be returned. | |
GetHashCode | (继承自 Object。) | |
GetType | (继承自 Object。) | |
HandleRequest |
根据客户端的请求进行处理的核心方法,可以返回自定义的数据内容,只需要集成重写即可。 (重写 HttpServerHandleRequest(HttpListenerRequest, HttpListenerResponse, Byte).)The core method of processing according to the client's request can return custom data content, and only needs to be integrated and rewritten. | |
MemberwiseClone | (继承自 Object。) | |
RegisterHttpRpcApi(Object) |
注册一个RPC的服务接口,可以指定当前的控制器名称,以及提供RPC服务的原始对象 (继承自 HttpServer。)Register an RPC service interface, you can specify the current controller name, and the original object that provides the RPC service | |
RegisterHttpRpcApi(String, Object) |
注册一个RPC的服务接口,可以指定当前的控制器名称,以及提供RPC服务的原始对象 (继承自 HttpServer。)Register an RPC service interface, you can specify the current controller name, and the original object that provides the RPC service | |
SetLoginAccessControl |
设置登录的账户信息,如果需要自己控制,可以自己实现委托HandleRequestFunc (继承自 HttpServer。)Set the login account information, if you need to control by yourself, you can implement the delegation by yourselfHandleRequestFunc | |
SetLoginAccount |
设置用户的登录信息,用户名和密码信息 Set user login information, user name and password information | |
Start |
启动服务器,正常调用该方法时,应该使用try...catch...来捕获错误信息 (继承自 HttpServer。)Start the server and use try...catch... to capture the error message when calling this method normally | |
ToString | (重写 HttpServerToString.) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |