public Channel GetChannel(string name) { Channel channel; if (!channels.TryGetValue(name, out channel)) { channels[name] = channel = new Channel(name); } return channel; }
public void CreateChannel(string name) { channels[name] = new Channel(name); }