} // InitRun private void OnSectionReceived() { var sectionReceived = SectionReceived; if (sectionReceived == null) { return; } var args = new SectionReceivedEventArgs { Header = Header.Clone(), BytesReceived = ReceivedBytes, Payload = new byte[Header.PayloadSize] }; Array.Copy(DatagramData, Header.PayloadOffset, args.Payload, 0, Header.PayloadSize); if (Header.PrivateHeaderLength > 0) { args.PrivateHeader = new byte[Header.PrivateHeaderLength]; Array.Copy(DatagramData, Header.PrivateHeaderOffset, args.PrivateHeader, 0, Header.PrivateHeaderLength); } // if SectionReceived?.Invoke(this, args); } // OnSectionReceived
} // Clean private void OnSectionReceived() { DvbStpSimpleClient.SectionReceivedEventArgs e; e = new DvbStpSimpleClient.SectionReceivedEventArgs() { DatagramCount = DatagramCount, PayloadId = Header.PayloadId, SegmentIdNetworkLo = Header.SegmentIdNetworkLo, SegmentIdNetworkHi = Header.SegmentIdNetworkHi, SegmentVersion = Header.SegmentVersion }; SectionReceived?.Invoke(this, e); } // OnSectionReceived
} // Versions_SegmentStarted private void Versions_SectionReceived(object sender, SectionReceivedEventArgs e) { SectionReceived?.Invoke(this, e); } // Versions_SectionReceived
} // OnDownloadCompleted protected virtual void OnSectionReceived(object sender, DvbStpSimpleClient.SectionReceivedEventArgs e) { SectionReceived?.Invoke(sender, e); } // OnSectionReceived