HttpJsonRpcOptionSetAllowJsonRpc(FuncIHttpSessionClient, HttpContext, Boolean) 方法
设置允许JsonRpc的委托。
命名空间: TouchSocket.JsonRpc程序集: TouchSocket.JsonRpc (在 TouchSocket.JsonRpc.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
public void SetAllowJsonRpc(
Func<IHttpSessionClient, HttpContext, bool> allowJsonRpc
)
Public Sub SetAllowJsonRpc (
allowJsonRpc As Func(Of IHttpSessionClient, HttpContext, Boolean)
)
member SetAllowJsonRpc :
allowJsonRpc : Func<IHttpSessionClient, HttpContext, bool> -> unit
参数
- allowJsonRpc FuncIHttpSessionClient, HttpContext, Boolean
- 允许JsonRpc的委托