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