示例#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. ";
        }