private void HandleConnected (object sender, EventArgs e) { Authenticator authenticator = new Authenticator (clientDriver.communicator); authenticator.Authenticated += HandleAuthenticated; }
void HandleTimeDelayEstimated(object sender, TimeDelayEventArgs e) { logger.Info("Delay to server is " + e.TimeDelayMs); logger.Info("Authenticating as a client"); Authenticator authenticator = new Authenticator(communicator); authenticator.Authenticated += HandleAuthenticated; }