public bool Equals(FidoFacetId other) { if (other == null) { return(false); } return(ToString().StartsWith(other.ToString())); }
public bool Equals(FidoFacetId other) { if (other == null) { return(false); } var localAuthority = Helpers.GetAuthority(_facetUri); var otherAuthority = Helpers.GetAuthority(other._facetUri); return(localAuthority == otherAuthority); }
private static void ValidateOrigin(IEnumerable <FidoFacetId> trustedFacetIds, FidoFacetId origin) { if (!trustedFacetIds.Any(x => x.Equals(origin))) { throw new InvalidOperationException(String.Format("{0} is not a recognized trusted origin for this backend", origin)); } }