Exemple #1
0
 protected void MicroBusDemoControl_MicroBusCommandCompleted(Object sender, MicroBusCommandIssuedEventArgs e)
 {
     MessageLabel.Text += $"Completed by {DateTime.Now.ToLongTimeString()}.";
     MessageContainer.Attributes["class"] = "alert alert-success";
 }
Exemple #2
0
 protected void MicroBusDemoControl_MicroBusCommandCanceled(Object sender, MicroBusCommandIssuedEventArgs e)
 {
     MessageLabel.Text += $"Message was canceled.";
     MessageContainer.Attributes["class"] = "alert alert-warning";
 }
Exemple #3
0
        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. ";
        }