public PassthroughUriFilter(IEnumerable<string> queryNamesToPassThrough, IUriFilter nextFilter = null) :
      base(nextFilter)
    {
      if (queryNamesToPassThrough == null) throw new ArgumentNullException(nameof(queryNamesToPassThrough));

      this.queryNamesToPassThrough = queryNamesToPassThrough.ToList();
    }
Пример #2
0
 public ResourceLinker(IRouteCacheProvider routesProvider, IRouteSegmentExtractor extractor, IUriFilter queryFilter)
 {
   this.routesProvider = routesProvider;
   this.segmentExtractor = extractor;
   this.uriFilter = queryFilter;
 }
 public void RunBeforeEachTest()
 {
     filters = new ExcludeRootUriFilter(new Uri(OriginUrl));
 }
Пример #4
0
 public void RunBeforeEachTest()
 {
     filters = new ExternalUriFilter(new Uri(OriginUrl));
 }
Пример #5
0
 /// <summary>
 /// </summary>
 /// <param name="nextFilter">The next filter or null.</param>
 public UriFilter(IUriFilter nextFilter)
 {
   this.nextFilter = nextFilter;
 }
Пример #6
0
 public EnsureHttpsFilter(IUriFilter nextFilter = null) : 
   base(nextFilter)
 {
 }