protected void MicroBusDemoControl_MicroBusCommandCompleted(Object sender, MicroBusCommandIssuedEventArgs e) { MessageLabel.Text += $"Completed by {DateTime.Now.ToLongTimeString()}."; MessageContainer.Attributes["class"] = "alert alert-success"; }
protected void MicroBusDemoControl_MicroBusCommandCanceled(Object sender, MicroBusCommandIssuedEventArgs e) { MessageLabel.Text += $"Message was canceled."; MessageContainer.Attributes["class"] = "alert alert-warning"; }
protected void MicroBusDemoControl_MicroBusCommandIssued(Object sender, MicroBusCommandIssuedEventArgs e) { var evt = e.Command as SlowWorkingCommand; MessageLabel.Text = $"Started command at {e.TimeIssued.ToLongTimeString()} for {evt.Timeout} milliseconds. "; }