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

HttpJsonRpcOptionSetAllowJsonRpc(FuncIHttpSessionClient, HttpContext, TaskBoolean) 方法

设置允许JsonRpc的委托。

Definition

命名空间: TouchSocket.JsonRpc
程序集: TouchSocket.JsonRpc (在 TouchSocket.JsonRpc.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public void SetAllowJsonRpc(
	Func<IHttpSessionClient, HttpContext, Task<bool>> allowJsonRpc
)

参数

allowJsonRpc  FuncIHttpSessionClient, HttpContext, TaskBoolean
允许JsonRpc的委托

参见