Contains information about currently running instance of a PhantomJS server
Наследование: IDisposable
Пример #1
0
        public static void ShutDown(bool alreadyLocked, bool silent = false)
        {
            PhantomServer ps;

            using (alreadyLocked ? null : _instanceAsyncLock.Lock())
            {
                if (_instance == null)
                {
                    return;
                }

                ps        = _instance;
                _instance = null;
            }

            ps.DisposeInternal(silent);
            GC.SuppressFinalize(ps);
        }
Пример #2
0
        public static void ShutDown(bool alreadyLocked, bool silent = false)
        {
            PhantomServer ps;

            using (alreadyLocked ? null : _instanceAsyncLock.Lock())
            {
                if (_instance == null)
                {
                    return;
                }

                ps = _instance;
                _instance = null;
            }

            ps.DisposeInternal(silent);
            GC.SuppressFinalize(ps);
        }