WebSocketJsonRpcOptionSetAllowJsonRpc(FuncIWebSocket, HttpContext, Boolean) 方法
设置是否允许JsonRpc的判断逻辑
命名空间: TouchSocket.JsonRpc程序集: TouchSocket.JsonRpc (在 TouchSocket.JsonRpc.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public WebSocketJsonRpcOption SetAllowJsonRpc(
Func<IWebSocket, HttpContext, bool> allowJsonRpc
)
Public Function SetAllowJsonRpc (
allowJsonRpc As Func(Of IWebSocket, HttpContext, Boolean)
) As WebSocketJsonRpcOption
member SetAllowJsonRpc :
allowJsonRpc : Func<IWebSocket, HttpContext, bool> -> WebSocketJsonRpcOption
- allowJsonRpc FuncIWebSocket, HttpContext, Boolean
- 判断逻辑
WebSocketJsonRpcOption返回当前
WebSocketJsonRpcOption实例,支持链式调用