WebSocketDmtpMiddleware 构造函数
实例化一个中间件
命名空间: TouchSocket.Dmtp.AspNetCore程序集: TouchSocket.AspNetCore (在 TouchSocket.AspNetCore.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public WebSocketDmtpMiddleware(
string m_url,
RequestDelegate next,
IWebSocketDmtpService rpcService
)
Public Sub New (
m_url As String,
next As RequestDelegate,
rpcService As IWebSocketDmtpService
)
new :
m_url : string *
next : RequestDelegate *
rpcService : IWebSocketDmtpService -> WebSocketDmtpMiddleware
参数
- m_url String
- WebSocket URL
- next RequestDelegate
- 下一个请求委托,用于表示当前中间件的下一个中间件或终端行动
- rpcService IWebSocketDmtpService
- WebSocket DMTP 服务,用于处理WebSocket的相关操作