Beispiel #1
0
 //todo: use caller name as thread label instead of asking for it
 protected override void RunOnNewThread(Task task, string threadLabel)
 => new Thread(async() =>
 {
     try { await task; }
     catch (Exception ex) { ThreadedAlerter.Show(ex, threadLabel); }
 }
               ).Start();
Beispiel #2
0
 public UploaderClient2(RestServerCredentials restServerCredentials) : base(restServerCredentials)
 {
     OnError      = ex => ThreadedAlerter.Show(ex, "Uploader Client 2");
     _partUploadr = new PackagePartUploader(restServerCredentials);
 }
Beispiel #3
0
 public PackagePartUploader(RestServerCredentials restServerCredentials) : base(restServerCredentials)
 {
     OnError = ex => ThreadedAlerter.Show(ex, "Package Part Uploader");
 }