public DefaultSubjectContext(ISubjectContext other) : this() { if (other != null && other.Count > 0) { _dictionary.Concat(other); } }
public SubjectBuilder(ISecurityManager securityManager) { if (securityManager == null) { throw new ArgumentNullException("securityManager"); } _securityManager = securityManager; _subjectContext = NewSubjectContextInstance(); if (_subjectContext == null) { throw new NullReferenceException("ISubjectContext instance returned from NewSubjectContextInstance cannot be null"); } _subjectContext.SecurityManager = _securityManager; }
public SubjectBuilder(ISecurityManager securityManager) { if (securityManager == null) { throw new ArgumentNullException("securityManager"); } _securityManager = securityManager; _subjectContext = NewSubjectContextInstance(); if (_subjectContext == null) { throw new NullReferenceException("ISubjectContext instance returned from NewSubjectContextInstance cannot be null"); } _subjectContext.SecurityManager = _securityManager; }