private void loadProxy() { _downProxy = new DownloadProxy(_source.SourceIp, _source.SourcePort); _downProxy.ErrorOccured += onErrorEvent; _downProxy.ExceptionReceived += onErrorReceived; _downProxy.DownloadInfoExpandAllReceived += onDownloadInfoExpandAll; _downProxy.DownloadInfoExpandAddReceived += onDownloadInfoExpandAny; _downProxy.DownloadExpandPartReceived += onDownloadExpandPart; }
private void loadProxy() { _downProxy = new DownloadProxy(_info.SourceIp, _info.SourcePort); _downProxy.BytesLengthReceived += onBytes; _downProxy.ErrorOccured += onErrorEvent; _downProxy.ExceptionReceived += onErrorReceived; _downProxy.VideoDataReceived += onVideoPacketReceived; _downProxy.VideoBaseReceived += onVideoBasePacketReceived; _downProxy.VideoInfoReceived += onVideoTimePeriodsReceived; }
private void disposeProxy() { if (_downProxy != null) { _downProxy.ErrorOccured -= onErrorEvent; _downProxy.ExceptionReceived -= onErrorReceived; _downProxy.DownloadInfoExpandAllReceived -= onDownloadInfoExpandAll; _downProxy.DownloadInfoExpandAddReceived -= onDownloadInfoExpandAny; _downProxy.DownloadExpandPartReceived -= onDownloadExpandPart; _downProxy.Dispose(); } _downProxy = null; }
private void disposeProxy() { if (_downProxy != null) { _downProxy.BytesLengthReceived -= onBytes; _downProxy.ErrorOccured -= onErrorEvent; _downProxy.ExceptionReceived -= onErrorReceived; _downProxy.VideoDataReceived -= onVideoPacketReceived; _downProxy.VideoBaseReceived -= onVideoBasePacketReceived; _downProxy.VideoInfoReceived -= onVideoTimePeriodsReceived; _downProxy.Close(); } _downProxy = null; }