Exemple #1
0
		public OutputWriter(Sandbox sb)
		{
			sandbox = sb;
			mainChain = chains[MainChannelName] = new OutputChain(sb, MainChannelName);
			chainStack.Push(mainChain);
			activeChains.Add(mainChain);
		}
Exemple #2
0
		public void OpenChannel(string name, ChannelVisibility visibility)
		{
			OutputChain chain;
			if (!chains.TryGetValue(name, out chain))
			{
				chain = chains[name] = new OutputChain(sandbox, name);
			}
			else if (activeChains.Contains(chain))
			{
				return;
			}
			chain.Visibility = visibility;
			chainStack.Push(chain);
			activeChains.Add(chain);
		}