//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();
public UploaderClient2(RestServerCredentials restServerCredentials) : base(restServerCredentials) { OnError = ex => ThreadedAlerter.Show(ex, "Uploader Client 2"); _partUploadr = new PackagePartUploader(restServerCredentials); }
public PackagePartUploader(RestServerCredentials restServerCredentials) : base(restServerCredentials) { OnError = ex => ThreadedAlerter.Show(ex, "Package Part Uploader"); }