public void Stem1_MsgReader(ReceivedMsg msg, AuthenticationSuccesMessage authenticationMessage) { if (State == AuthenticationState.Processing) { State = AuthenticationState.Success; } Stop(); }
//--- msg readers private void AuthenticationSuccessMsgReader(ReceivedMsg receivedMsg, AuthenticationSuccesMessage msg) { _authenticationState.Stem1_MsgReader(receivedMsg, msg); if (_authenticationState.State == UserAuthenticationState.AuthenticationState.Success) { _authenticationState = null; IsConnected = true; if (OnUserLogin != null) { OnUserLogin(); } } }