Ejemplo n.º 1
0
        public virtual bool MatchesKeyIdentifierClause(SecurityKeyIdentifierClause keyIdentifierClause)
        {
            LocalIdKeyIdentifierClause localKeyIdentifierClause = keyIdentifierClause as LocalIdKeyIdentifierClause;

            if (localKeyIdentifierClause != null)
            {
                return(localKeyIdentifierClause.Matches(this.Id, this.GetType()));
            }

            return(false);
        }
Ejemplo n.º 2
0
        public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause)
        {
            LocalIdKeyIdentifierClause that = keyIdentifierClause as LocalIdKeyIdentifierClause;

            return(ReferenceEquals(this, that) || (that != null && that.Matches(this.localId, this.OwnerType)));
        }