} // OnDownloadCompleted protected virtual void OnSectionReceived(object sender, DvbStpSimpleClient.SectionReceivedEventArgs e) { if (SectionReceived == null) { return; } SectionReceived(sender, e); } // 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
} // FireDownloadCompleted private void FireSectionReceived() { if (SectionReceived == null) { return; } var e = new DvbStpSimpleClient.SectionReceivedEventArgs() { DatagramCount = this.DatagramCount, PayloadId = Header.PayloadId, SegmentIdNetworkLo = Header.SegmentIdNetworkLo, SegmentIdNetworkHi = Header.SegmentIdNetworkHi, SegmentVersion = Header.SegmentVersion }; OnSectionReceived(this, e); } // FireSectionReceived
} // OnDownloadCompleted protected virtual void OnSectionReceived(object sender, DvbStpSimpleClient.SectionReceivedEventArgs e) { SectionReceived?.Invoke(sender, e); } // OnSectionReceived