一款简单易用的基础网络通讯组件库。

WebSocketJsonRpcParserPluginSetAllowJsonRpc(FuncIWebSocket, HttpContext, Boolean) 方法

经过判断是否标识当前的客户端为JsonRpc

Definition

命名空间: TouchSocket.JsonRpc
程序集: TouchSocket.JsonRpc (在 TouchSocket.JsonRpc.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public WebSocketJsonRpcParserPlugin SetAllowJsonRpc(
	Func<IWebSocket, HttpContext, bool> allowJsonRpc
)

参数

allowJsonRpc  FuncIWebSocket, HttpContext, Boolean

[缺少 "M:TouchSocket.JsonRpc.WebSocketJsonRpcParserPlugin.SetAllowJsonRpc(System.Func{TouchSocket.Http.WebSockets.IWebSocket,TouchSocket.Http.HttpContext,System.Boolean})" 的 <param name="allowJsonRpc"/> 文档]

返回值

WebSocketJsonRpcParserPlugin

[缺少 "M:TouchSocket.JsonRpc.WebSocketJsonRpcParserPlugin.SetAllowJsonRpc(System.Func{TouchSocket.Http.WebSockets.IWebSocket,TouchSocket.Http.HttpContext,System.Boolean})" 的 <returns> 文档]

参见