public TokenValidationBehavior(Account account) { _account = account; }
public TokenValiadtionClientMessageInspector(Account account) { _account = account; }
private void DoLoginCallbackEvent(LoginCallbackEventArgs args) { SetLoginState(false); if (args.OpResult.ResultType != OperationResultType.Success) return; Account account = null; //if (args.Kind == LoginOperationKinds.Logout) // _lighterContext.SetCurrentAccount(null); //else if (args.Kind == LoginOperationKinds.Login) { string[] infos = args.OpResult.LogMessage.Split(new char[] { '|' }); account = new Account(infos[0], infos[1], infos[2]); } _lighterContext.SetCurrentAccount(account); }