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