예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }