Пример #1
0
        /////////////////////////////////////////////////////////////////////////////

        private static void OnShutdown()
        {
#if ENABLE_AVAHI
            zeroconf.Dispose();
#endif
            // Stop our Inotify threads
            Inotify.Stop();

            // Stop the global scheduler and ask it to shutdown
            Scheduler.Global.Stop(true);

            // Stop the messaging server
            if (server != null)
            {
                server.Stop();
            }
        }