private void CheckLyncProcessStatus(object state) { if (LyncHelper.GetLyncProcess() == null) { DebugLog.Write("Lync is no longer running, exiting LyncChatLogger"); DebugLog.Write("SHUTDOWN{0}", Environment.NewLine); Environment.Exit(0); } }
public static void ShutdownLync() { DebugLog.Write("LyncChatLogger closing, shutting down Lync"); Process p = LyncHelper.GetLyncProcess(); if (p != null) { p.Kill(); } DebugLog.Write("SHUTDOWN{0}", Environment.NewLine); }