/// <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; }
private void OnNewClient(Object sender, NewClientEventArgs e) { newClient = true; client = e.Client; client.OnNewData += OnNewData; client.OnLostClient += OnLostClient; }