public IStreamingContainer GetContainer(string name)
        {
            var path = Path.Combine(_path, name);

            MemoryStreamingContainer container;
            if (!GetRealContainer()._containers.TryGetValue(path, out container))
            {
                container = new MemoryStreamingContainer(this, path);
            }

            return container;
        }
Exemplo n.º 2
0
        public IStreamingContainer GetContainer(string name)
        {
            var path = Path.Combine(_path, name);

            MemoryStreamingContainer container;

            if (!GetRealContainer()._containers.TryGetValue(path, out container))
            {
                container = new MemoryStreamingContainer(this, path);
            }

            return(container);
        }
Exemplo n.º 3
0
        MemoryStreamingContainer GetExistingContainerOr(MemoryStreamingContainer container)
        {
            MemoryStreamingContainer cntr;

            return(_containers.TryGetValue(container.FullPath, out cntr) ? cntr : container);
        }
Exemplo n.º 4
0
 internal MemoryStreamingContainer(MemoryStreamingContainer parent, string path)
 {
     _parent = parent;
     _path   = path;
 }
Exemplo n.º 5
0
        internal MemoryStreamingContainer Add(MemoryStreamingContainer container)
        {
            ThrowIfContainerNotFound();

            return(GetRealContainer()._containers.GetOrAdd(container.FullPath, s => container));
        }
 internal MemoryStreamingContainer(MemoryStreamingContainer parent, string path)
 {
     _parent = parent;
     _path = path;
 }
 MemoryStreamingContainer GetExistingContainerOr(MemoryStreamingContainer container)
 {
     MemoryStreamingContainer cntr;
     return _containers.TryGetValue(container.FullPath, out cntr) ? cntr : container;
 }
        internal MemoryStreamingContainer Add(MemoryStreamingContainer container)
        {
            ThrowIfContainerNotFound();

            return GetRealContainer()._containers.GetOrAdd(container.FullPath, s => container);
        }