wcf - How do implement a SignalR heartbeat/ping betweeen ASP.NET and Windows Server service? -
i needing implement heartbeat or ping/test asp.net admin page windows service service. how implement signalr ping function? singalr has heartbeatmonitor class no example of how used:
public void beat( timespan timeelapsed )
you can build system.diagnostics namespace. wanted test if mysql running service. below example. if running id process has value. otherwise empty or null.
performancecounter mycounter_cpu = new performancecounter(); mycounter_cpu.machinename = m_server; mycounter_cpu.categoryname = "process"; mycounter_cpu.countername = "id process"; mycounter_cpu.instancename = "mysqld"; string foo = mycounter_cpu.rawvalue.tostring();
Comments
Post a Comment