public FriendsList(IUpstreamConnection connection, Irc.IRawMessageConnection downstream, Configuration conf)
        {
            this.downstream = downstream;
            this.client = connection.Client;
            this.mapper = connection.Mapper;
            this.config = conf;
            client.Friends.FriendOnline += GridClient_FriendPresenceChanged;
            client.Friends.FriendOffline += GridClient_FriendPresenceChanged;

            downstream.Register(this);
        }
Ejemplo n.º 2
0
        public FriendsList(IUpstreamConnection connection, Irc.IRawMessageConnection downstream, Configuration conf)
        {
            this.downstream               = downstream;
            this.client                   = connection.Client;
            this.mapper                   = connection.Mapper;
            this.config                   = conf;
            client.Friends.FriendOnline  += GridClient_FriendPresenceChanged;
            client.Friends.FriendOffline += GridClient_FriendPresenceChanged;

            downstream.Register(this);
        }
Ejemplo n.º 3
0
        public ClientConnection(Socket connection, IUpstreamConnection upstream, IIdentityMapper mapper)
        {
            this.connection  = connection;
            this.upstream    = upstream;
            this.mapper      = mapper;
            this.channels    = new ConcurrentDictionary <string, IChannel>();
            this.handlers    = new HashSet <IRawMessageHandler>();
            handlerCallbacks = new Dictionary <string, RawMessageHandler>();

            upstream.ReceiveMessage    += ReceiveUpstreamMessage;
            upstream.ChannelListLoaded += ChannelListLoaded;
        }
        public ClientConnection(Socket connection, IUpstreamConnection upstream, IIdentityMapper mapper)
        {
            this.connection = connection;
            this.upstream = upstream;
            this.mapper = mapper;
            this.channels = new ConcurrentDictionary<string, IChannel>();
            this.handlers = new HashSet<IRawMessageHandler>();
            handlerCallbacks = new Dictionary<string, RawMessageHandler>();

            upstream.ReceiveMessage += ReceiveUpstreamMessage;
            upstream.ChannelListLoaded += ChannelListLoaded;
        }