예제 #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)
 {
 }