Beispiel #1
0
 private void InternalCreateCatalog()
 {
     _catalog   = new Schema.Catalog();
     _planCache = new PlanCache(DefaultPlanCacheSize);
     if (_streamManager == null)
     {
         _streamManager = new ServerStreamManager(this);
     }
 }
Beispiel #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();
            }
        }
Beispiel #3
0
 public ServerStream(ServerStreamManager streamManager, StreamID streamID, Stream sourceStream) : base()
 {
     _streamManager = streamManager;
     _streamID      = streamID;
     _sourceStream  = sourceStream;
 }
Beispiel #4
0
 public ManagedStream(ServerStreamManager manager, int ownerID, StreamID streamID, Stream sourceStream) : base(sourceStream)
 {
     _streamManager = manager;
     _ownerID       = ownerID;
     _streamID      = streamID;
 }