private async void Storyboard_Completed(object sender, EventArgs e) { var message = new NotificationMessage { Subject = "App TWO", Body = "The App TWO has finalized on ERROR", User = "******", MessageDate = DateTime.Now, Server = "Server Local", UriImage = "https://nhlearningsolutions.com/portals/0/Logos/Win10.png" }; message.MessageType = MessageType.Error; await connectHub.SendMessage(message); }
async private void btnSend_Click(object sender, RoutedEventArgs e) { var message = new NotificationMessage { Subject = txtSubject.Text, Body = txtMensaje.Text, User = txtUser.Text, MessageDate = DateTime.Now, Server = txtServer.Text, UriImage = txtUriImage.Text }; message.MessageType = (MessageType)cmbType.SelectedIndex; await connectHub.SendMessage(message); }