public void VirtualChannelOpenEvent(int openHandle, ChannelEvents Event, byte[] data, int dataLength, uint totalLength, ChannelFlags dataFlags) { DataChannelEventArgs args = new DataChannelEventArgs() { Data = data, DataFlags = dataFlags, DataLength = dataLength, Event = Event, OpenHandle = openHandle, TotalLength = totalLength }; OnDataChannelEvent(args); }
protected void OnDataChannelEvent(DataChannelEventArgs e) { DataChannelEvent?.Invoke(this, e); }