コード例 #1
0
ファイル: StreamManager.cs プロジェクト: jdauie/cloudae
        public static StreamManagerSharedStream CreateSharedStream(ISourcePaths source)
        {
            foreach (string path in source.SourcePaths)
            {
                if (c_sharedStreams.ContainsKey(path))
                    throw new Exception("Stream location already shared");

                c_sharedStreams.Add(path, null);
            }

            var shared = new StreamManagerSharedStream(source);

            return shared;
        }
コード例 #2
0
ファイル: StreamManager.cs プロジェクト: PCLC7Z2/cloudae
        public static StreamManagerSharedStream CreateSharedStream(ISourcePaths source)
        {
            foreach (string path in source.SourcePaths)
            {
                if (c_sharedStreams.ContainsKey(path))
                {
                    throw new Exception("Stream location already shared");
                }

                c_sharedStreams.Add(path, null);
            }

            var shared = new StreamManagerSharedStream(source);

            return(shared);
        }