Ejemplo n.º 1
0
        protected override void AddTwoFactorAuthToken(TwoFactorAuthToken item)
        {
            var twoFactorAuthToken = new NhTwoFactorAuthToken();

            twoFactorAuthToken.GetType().GetProperty("Issued").SetValue(twoFactorAuthToken, item.Issued);
            twoFactorAuthToken.GetType().GetProperty("Token").SetValue(twoFactorAuthToken, item.Token);
            twoFactorAuthToken.GetType().GetProperty("Account").SetValue(twoFactorAuthToken, this);
            this.TwoFactorAuthTokensCollection.Add(twoFactorAuthToken);
        }
 protected override void AddTwoFactorAuthToken(TwoFactorAuthToken item)
 {
     var twoFactorAuthToken = new NhTwoFactorAuthToken();
     twoFactorAuthToken.GetType().GetProperty("Issued").SetValue(twoFactorAuthToken, item.Issued);
     twoFactorAuthToken.GetType().GetProperty("Token").SetValue(twoFactorAuthToken, item.Token);
     twoFactorAuthToken.GetType().GetProperty("Account").SetValue(twoFactorAuthToken, this);
     this.TwoFactorAuthTokensCollection.Add(twoFactorAuthToken);
 }