示例#1
0
文件: Irc.cs 项目: owensdj/WinIRC
        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)
                                                                                                         );
        }
示例#2
0
 public IrcWebSocket(IrcServer server) : base(server)
 {
 }