MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ServiceStatus

Method ServiceStatus

agent/windows-setup-agent/ServiceStatus.cs:10–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 public partial class ServiceStatus : Form
9 {
10 public ServiceStatus()
11 {
12 InitializeComponent();
13
14 try {
15 ServiceController sc = new ServiceController("icinga2");
16
17 txtStatus.Text = sc.Status.ToString();
18 } catch (InvalidOperationException) {
19 txtStatus.Text = "Not Available";
20 }
21 }
22
23 private void btnReconfigure_Click(object sender, EventArgs e)
24 {

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected