protected virtual bool HandlesRequest(HttpContext context, Config c) { switch (EndpointMatchMethod) { case EndpointMatching.FilePathEndsWithOrdinalIgnoreCase: return(Endpoints.Any(v => context.Request.FilePath.EndsWith(v, StringComparison.OrdinalIgnoreCase))); case EndpointMatching.FilePathMatchesOrdinal: return(Endpoints.Any(v => context.Request.FilePath.Equals(v, StringComparison.Ordinal))); default: return(false); } }
private bool DoesEndpointExist(string sipAddress) { return(Endpoints.Any(x => x.SipAddress == sipAddress)); }
private bool DoesEndpointExist(string sip) { return(Endpoints.Any(x => x.Sip.Equals(sip, StringComparison.InvariantCultureIgnoreCase))); }
private bool HasNewSelections() { return(Endpoints.Any(e => e.Send && e.NotExistingSender)); }