public static Task <IList <WebTranscoderProfile> > ProcessAsync(IOwinContext context, string target) { TargetComparer targetComparer = new TargetComparer(); return(Task.FromResult <IList <WebTranscoderProfile> >(ProfileManager.Profiles.Where(x => x.Value.Targets.Contains(target, targetComparer) || x.Value.Targets.Count == 0).Select(profile => TranscoderProfile(profile)).ToList())); }
public override int GetHashCode() { return(0x72F10A3D + 37 * TargetComparer.GetHashCode(target) + 37 * MemberComparer.GetHashCode(member)); }
public bool Equals(VirtualSite <TNode, TMember> other) { return(other != null && TargetComparer.Equals(target, other.target) && MemberComparer.Equals(member, other.member)); }