点击或拖拽改变大小

MqttServerRegisterMqttRpcApi 方法 (String, Object)

注册一个RPC的服务接口,可以指定当前的控制器名称,以及提供RPC服务的原始对象
Register an RPC service interface, you can specify the current controller name, and the original object that provides the RPC service

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public void RegisterMqttRpcApi(
	string api,
	Object obj
)

参数

api
类型:SystemString
前置的接口信息,可以理解为MVC模式的控制器
obj
类型:SystemObject
原始对象信息
参见