/// <summary> /// <c>Restart</c> /// Method called by Topshellf to restart the service /// </summary> public void Restart() { if (WatchSocket) { SocketListener.ShutDown(); SocketListener.Go(); } if (WatchFileSystem) { FilesystemListener.ShutDown(); FilesystemListener.Go(); } EventLogger.Info("Service restarted"); }