internal static void Start() { if (!CommunicationThread.ThreadIsRunning) { CommunicationThread.ThreadStart(); } }
internal static void Stop() { if (ServiceHost != null) { Log.Info("Stopped Server on '{0}' ", ServerUri.AbsoluteUri + "Follow"); ServiceHost.Close(); ServiceHost = null; } CommunicationThread.ThreadShutdown(); ServerInitialized = false; }
public static void Initialize() { Pulsator.OnPulse += (sender, args) => CommunicationThread.ThreadStart(); }