public Irc(IrcServer server) { this.server = server; ircMessages = new ObservableCollection <Message>(); channelList = new ServerGroup(new ObservableCollection <Channel>()); channelList.Server = server.name; channelBuffers = new Dictionary <string, MessageCollection>(StringComparer.OrdinalIgnoreCase); channelStore = new Dictionary <string, ChannelStore>(StringComparer.OrdinalIgnoreCase); IsAuthed = false; ConnCheck = new Connection(); AddChannel("Server"); ConnCheck.ConnectionChanged += async(connected) => await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => ConnectionChanged(connected) ); }
public IrcWebSocket(IrcServer server) : base(server) { }