コード例 #1
0
 internal static void Start()
 {
     if (!CommunicationThread.ThreadIsRunning)
     {
         CommunicationThread.ThreadStart();
     }
 }
コード例 #2
0
        internal static void Stop()
        {
            if (ServiceHost != null)
            {
                Log.Info("Stopped Server on '{0}' ", ServerUri.AbsoluteUri + "Follow");
                ServiceHost.Close();
                ServiceHost = null;
            }

            CommunicationThread.ThreadShutdown();
            ServerInitialized = false;
        }
コード例 #3
0
ファイル: Service.cs プロジェクト: dachidahu/AutoFollow
 public static void Initialize()
 {
     Pulsator.OnPulse += (sender, args) => CommunicationThread.ThreadStart();
 }