Esempio n. 1
0
        /// <summary>
        /// Returns true if the HttpMethod of other matches this HttpMethod, and if this attribute's
        /// ResourceUris is a superset of other's ResourceUris
        /// </summary>
        public virtual bool Contains(ResourceActionAttribute other)
        {
            var commonUris = ResourceUris.Intersect(other.ResourceUris, StringComparer.InvariantCultureIgnoreCase).Count();

            return(HttpMethod.Equals(other.HttpMethod) && commonUris == other.ResourceUris.Length);
        }
 /// <summary>
 /// Returns true if the HttpMethod of other matches this HttpMethod, and if this attribute's
 /// ResourceUris is a superset of other's ResourceUris
 /// </summary>
 public virtual bool Contains(ResourceActionAttribute other)
 {
     var commonUris = ResourceUris.Intersect(other.ResourceUris, StringComparer.InvariantCultureIgnoreCase).Count();
     return HttpMethod.Equals(other.HttpMethod) && commonUris == other.ResourceUris.Length;
 }