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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -