コード例 #1
0
 public IDownloader OnError(Downloader.ErrorEventDelegate action)
 {
     _onError = e =>
     {
         _threadContext.BeginInvoke(() =>
         {
             action(e);
         });
     };
     return this;
 }
コード例 #2
0
 public IDownloader After(Downloader.AfterDownloadEventDelegate action)
 {
     _onAfterDownload = () =>
     {
         _threadContext.BeginInvoke(() =>
         {
             action();
         });
     };
     return this;
 }