コード例 #1
0
 public TokenValidationBehavior(Account account)
 {
     _account = account;
 }
コード例 #2
0
 public TokenValiadtionClientMessageInspector(Account account)
 {
     _account = account;
 }
コード例 #3
0
        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);
        }