private void NotifyServiceStatusChange(int status) { try { NotifyAdapterServerClient notifyClient = new NotifyAdapterServerClient("HL7Service"); notifyClient.NotifyStatusChanged(ServiceName, status); Program.Log.Write("Notify service status change success."); } catch (Exception ex) { Program.Log.Write(LogType.Warning, "Notify service status change failed."); Program.Log.Write(LogType.Warning, ex.StackTrace); } }
private void buttonSend_Click(object sender, EventArgs e) { NotifyAdapterServerClient client = new NotifyAdapterServerClient("StatusNotifier"); client.NotifyStatusChanged(int.Parse(textBoxInterfaceID.Text), int.Parse(textBoxStatus.Text)); }