public void Execute(LongProcessEndedEvent notification) { this.Invoke(x => { _logUi.Info(notification.Message); toolStripLabel.Text = notification.Message; toolStripProgressBar.Style = ProgressBarStyle.Continuous; toolStripProgressBar.MarqueeAnimationSpeed = 0; }); }
public Task Handle(LongProcessEndedEvent notification, CancellationToken cancellationToken) { _form.Execute(notification); return(Task.CompletedTask); }