WebSocketJsonRpcOptionSetAllowJsonRpc(FuncIWebSocket, HttpContext, TaskBoolean) 方法
设置是否允许JsonRpc的判断逻辑
命名空间: TouchSocket.JsonRpc程序集: TouchSocket.JsonRpc (在 TouchSocket.JsonRpc.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
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实例,支持链式调用