public async Task Handle(CancelAll request) { //await new ActionNotification(Guid.Empty, "Aborting", "", request.ClientId, request.RequestId).Raise() .ConfigureAwait(false); await _contentInstallation.Abort().ConfigureAwait(false); // await new ActionNotification(Guid.Empty, "Aborted", "", request.ClientId, request.RequestId).Raise().ConfigureAwait(false); }
private void details_Sortee_Load(object sender, EventArgs e) { id.Text = item.Id.ToString(); barcode.Text = item.Barcode1; prix.Text = item.Prix.ToString(); desination.Text = item.Nom; description_inter.Text = item.Description_inter; descroption_fabrication.Text = item.Descroption_fabrication; codeean.Text = item.Code_fabrication; date.Text = item.Date_entre.ToShortDateString(); pictureBox1.Image = byteToImage(item.Img); if (NumberOfDialogs == 1) { CancelAll.Hide(); } }
public bool Stop(HostControl hostControl) { try { Task.Run(() => { if (File.Exists("C:\\RikCodeCampDb.db")) { File.Delete("C:\\RikCodeCampDb.db"); } }); _worker.Stop(); _bootstrapper?.Dispose(); CancelAll.Cancel(); return(true); } catch (Exception exception) { _logger.Fatal(exception, "Stop failed!!! "); } return(false); }