PluginEventHandlerTClient, TEventArgs 委托
插件泛型基础事件委托
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public delegate void PluginEventHandler<TClient, TEventArgs>(
TClient client,
TEventArgs e
)
where TEventArgs : PluginEventArgs
Public Delegate Sub PluginEventHandler(Of TClient, TEventArgs As PluginEventArgs) (
client As TClient,
e As TEventArgs
)
type PluginEventHandler =
delegate of
client : 'TClient *
e : 'TEventArgs -> unit
- client TClient
- 触发事件的客户端实例
- e TEventArgs
- 包含事件数据的事件参数
- TClient
- 客户端类型,表示事件发生的上下文环境
- TEventArgs
- 事件参数类型,必须继承自PluginEventArgs