NamedPipeDmtpClientOnCreateChannel 方法
当创建通道时触发的事件处理方法。
命名空间: TouchSocket.Dmtp程序集: TouchSocketPro.Dmtp (在 TouchSocketPro.Dmtp.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
protected virtual Task OnCreateChannel(
CreateChannelEventArgs e
)
Protected Overridable Function OnCreateChannel (
e As CreateChannelEventArgs
) As Task
abstract OnCreateChannel :
e : CreateChannelEventArgs -> Task
override OnCreateChannel :
e : CreateChannelEventArgs -> Task
- e CreateChannelEventArgs
- 包含通道创建信息的事件参数。
Task表示异步事件处理操作的任务。
此方法在DMTP通道被创建时调用,允许应用程序响应通道创建事件。
如果事件已被处理([!:CreateChannelEventArgs.Handled]为),则直接返回。