示例#1
0
        public void Test_Implicit()
        {
            ConfigVector v = "{r: {a:1, b:2}}";

            Aver.AreEqual(1, v.Node.Of("a").ValueAsInt());
            Aver.AreEqual(2, v.Node.Of("b").ValueAsInt());
        }
示例#2
0
 public User(Credentials credentials,
             SysAuthToken token,
             string name,
             Rights rights,
             DateTime?utcNow    = null,
             ConfigVector props = null) : this(credentials, token, UserStatus.User, name, null, rights, utcNow, props)
 {
 }
示例#3
0
        }              //for quicker serialization

        public User(Credentials credentials,
                    SysAuthToken token,
                    UserStatus status,
                    string name,
                    string descr,
                    Rights rights,
                    DateTime?utcNow    = null,
                    ConfigVector props = null)
        {
            m_Credentials         = credentials;
            m_AuthenticationToken = token;
            m_Status             = status;
            m_Name               = name;
            m_Description        = descr;
            m_Rights             = rights;
            m_StatusTimeStampUTC = utcNow ?? Ambient.UTCNow;
            m_Props              = props;
        }