Exemplo n.º 1
0
 private void InternalCreateCatalog()
 {
     _catalog   = new Schema.Catalog();
     _planCache = new PlanCache(DefaultPlanCacheSize);
     if (_streamManager == null)
     {
         _streamManager = new ServerStreamManager(this);
     }
 }
Exemplo n.º 2
0
        private void InternalStop()
        {
            try
            {
                try
                {
                    try
                    {
                        try
                        {
                            if (_planCache != null)
                            {
                                _planCache.Clear(_systemProcess);
                                _planCache = null;
                            }
                        }
                        finally
                        {
                            StopDevices();
                        }
                    }
                    finally
                    {
                        CloseSessions();
                    }
                }
                finally
                {
                    _systemSession = null;
                    _systemProcess = null;

                    if (_streamManager != null)
                    {
                        _streamManager.Dispose();
                        _streamManager = null;
                    }
                }
            }
            finally
            {
                UninitializeAvailableLibraries();
            }
        }