Inheritance: System.EventArgs
Exemplo n.º 1
0
        /// <summary>
        /// New client event handler. This is triggered by the network layer.
        /// </summary>
        public void NewClientHandler(object sender, NewClientEventArgs e)
        {
            GenericSession session = new LoginSession(e.Client, this.eventAggregator);

            e.Client.OnNewData += session.NewDataHandler;
            e.Client.OnLostClient += session.LostClientHandler;
        }
Exemplo n.º 2
0
        private void OnNewClient(Object sender, NewClientEventArgs e)
        {
            newClient = true;

            client = e.Client;

            client.OnNewData += OnNewData;
            client.OnLostClient += OnLostClient;
        }