예제 #1
0
 public DownstreamReRoute(
     string key,
     PathTemplate upstreamPathTemplate,
     List <HeaderFindAndReplace> upstreamHeadersFindAndReplace,
     List <HeaderFindAndReplace> downstreamHeadersFindAndReplace,
     List <DownstreamHostAndPort> downstreamAddresses,
     string serviceName,
     HttpHandlerOptions httpHandlerOptions,
     bool useServiceDiscovery,
     bool enableEndpointEndpointRateLimiting,
     bool isQos,
     QoSOptions qosOptionsOptions,
     string downstreamScheme,
     string requestIdKey,
     bool isCached,
     CacheOptions cacheOptions,
     string loadBalancer,
     RateLimitOptions rateLimitOptions,
     Dictionary <string, string> routeClaimsRequirement,
     List <ClaimToThing> claimsToQueries,
     List <ClaimToThing> claimsToHeaders,
     List <ClaimToThing> claimsToClaims,
     bool isAuthenticated,
     bool isAuthorised,
     AuthenticationOptions authenticationOptions,
     PathTemplate downstreamPathTemplate,
     string reRouteKey,
     List <string> delegatingHandlers,
     List <AddHeader> addHeadersToDownstream)
 {
     AddHeadersToDownstream = addHeadersToDownstream;
     DelegatingHandlers     = delegatingHandlers;
     Key = key;
     UpstreamPathTemplate            = upstreamPathTemplate;
     UpstreamHeadersFindAndReplace   = upstreamHeadersFindAndReplace ?? new List <HeaderFindAndReplace>();
     DownstreamHeadersFindAndReplace = downstreamHeadersFindAndReplace ?? new List <HeaderFindAndReplace>();
     DownstreamAddresses             = downstreamAddresses ?? new List <DownstreamHostAndPort>();
     ServiceName         = serviceName;
     HttpHandlerOptions  = httpHandlerOptions;
     UseServiceDiscovery = useServiceDiscovery;
     EnableEndpointEndpointRateLimiting = enableEndpointEndpointRateLimiting;
     IsQos                  = isQos;
     QosOptionsOptions      = qosOptionsOptions;
     DownstreamScheme       = downstreamScheme;
     RequestIdKey           = requestIdKey;
     IsCached               = isCached;
     CacheOptions           = cacheOptions;
     LoadBalancer           = loadBalancer;
     RateLimitOptions       = rateLimitOptions;
     RouteClaimsRequirement = routeClaimsRequirement;
     ClaimsToQueries        = claimsToQueries ?? new List <ClaimToThing>();
     ClaimsToHeaders        = claimsToHeaders ?? new List <ClaimToThing>();
     ClaimsToClaims         = claimsToClaims ?? new List <ClaimToThing>();
     IsAuthenticated        = isAuthenticated;
     IsAuthorised           = isAuthorised;
     AuthenticationOptions  = authenticationOptions;
     DownstreamPathTemplate = downstreamPathTemplate;
     ReRouteKey             = reRouteKey;
 }
예제 #2
0
 public ReRoute(PathTemplate downstreamPathTemplate,
                PathTemplate upstreamPathTemplate,
                List <HttpMethod> upstreamHttpMethod,
                UpstreamPathTemplate upstreamTemplatePattern,
                bool isAuthenticated,
                AuthenticationOptions authenticationOptions,
                List <ClaimToThing> claimsToHeaders,
                List <ClaimToThing> claimsToClaims,
                Dictionary <string, string> routeClaimsRequirement,
                bool isAuthorised,
                List <ClaimToThing> claimsToQueries,
                string requestIdKey,
                bool isCached,
                CacheOptions cacheOptions,
                string downstreamScheme,
                string loadBalancer,
                string reRouteKey,
                bool isQos,
                QoSOptions qosOptions,
                bool enableEndpointRateLimiting,
                RateLimitOptions ratelimitOptions,
                HttpHandlerOptions httpHandlerOptions,
                bool useServiceDiscovery,
                string serviceName,
                List <HeaderFindAndReplace> upstreamHeadersFindAndReplace,
                List <HeaderFindAndReplace> downstreamHeadersFindAndReplace,
                List <DownstreamHostAndPort> downstreamAddresses,
                string upstreamHost)
 {
     UpstreamHost = upstreamHost;
     DownstreamHeadersFindAndReplace = downstreamHeadersFindAndReplace ?? new List <HeaderFindAndReplace>();
     UpstreamHeadersFindAndReplace   = upstreamHeadersFindAndReplace ?? new List <HeaderFindAndReplace>();
     ServiceName             = serviceName;
     UseServiceDiscovery     = useServiceDiscovery;
     ReRouteKey              = reRouteKey;
     LoadBalancer            = loadBalancer;
     DownstreamAddresses     = downstreamAddresses ?? new List <DownstreamHostAndPort>();
     DownstreamPathTemplate  = downstreamPathTemplate;
     UpstreamPathTemplate    = upstreamPathTemplate;
     UpstreamHttpMethod      = upstreamHttpMethod;
     UpstreamTemplatePattern = upstreamTemplatePattern;
     IsAuthenticated         = isAuthenticated;
     AuthenticationOptions   = authenticationOptions;
     RouteClaimsRequirement  = routeClaimsRequirement;
     IsAuthorised            = isAuthorised;
     RequestIdKey            = requestIdKey;
     IsCached          = isCached;
     CacheOptions      = cacheOptions;
     ClaimsToQueries   = claimsToQueries ?? new List <ClaimToThing>();
     ClaimsToClaims    = claimsToClaims ?? new List <ClaimToThing>();
     ClaimsToHeaders   = claimsToHeaders ?? new List <ClaimToThing>();
     DownstreamScheme  = downstreamScheme;
     IsQos             = isQos;
     QosOptionsOptions = qosOptions;
     EnableEndpointEndpointRateLimiting = enableEndpointRateLimiting;
     RateLimitOptions   = ratelimitOptions;
     HttpHandlerOptions = httpHandlerOptions;
 }
예제 #3
0
 public ReRoute(PathTemplate downstreamPathTemplate,
                PathTemplate upstreamPathTemplate,
                List <HttpMethod> upstreamHttpMethod,
                string upstreamTemplatePattern,
                bool isAuthenticated,
                AuthenticationOptions authenticationOptions,
                List <ClaimToThing> claimsToHeaders,
                List <ClaimToThing> claimsToClaims,
                Dictionary <string, string> routeClaimsRequirement,
                bool isAuthorised,
                List <ClaimToThing> claimsToQueries,
                string requestIdKey,
                bool isCached,
                CacheOptions fileCacheOptions,
                string downstreamScheme,
                string loadBalancer,
                string downstreamHost,
                int downstreamPort,
                string reRouteKey,
                ServiceProviderConfiguration serviceProviderConfiguraion,
                bool isQos,
                QoSOptions qosOptions,
                bool enableEndpointRateLimiting,
                RateLimitOptions ratelimitOptions,
                HttpHandlerOptions httpHandlerOptions)
 {
     ReRouteKey = reRouteKey;
     ServiceProviderConfiguraion = serviceProviderConfiguraion;
     LoadBalancer            = loadBalancer;
     DownstreamHost          = downstreamHost;
     DownstreamPort          = downstreamPort;
     DownstreamPathTemplate  = downstreamPathTemplate;
     UpstreamPathTemplate    = upstreamPathTemplate;
     UpstreamHttpMethod      = upstreamHttpMethod;
     UpstreamTemplatePattern = upstreamTemplatePattern;
     IsAuthenticated         = isAuthenticated;
     AuthenticationOptions   = authenticationOptions;
     RouteClaimsRequirement  = routeClaimsRequirement;
     IsAuthorised            = isAuthorised;
     RequestIdKey            = requestIdKey;
     IsCached        = isCached;
     CacheOptions    = fileCacheOptions;
     ClaimsToQueries = claimsToQueries
                       ?? new List <ClaimToThing>();
     ClaimsToClaims = claimsToClaims
                      ?? new List <ClaimToThing>();
     ClaimsToHeaders = claimsToHeaders
                       ?? new List <ClaimToThing>();
     DownstreamScheme  = downstreamScheme;
     IsQos             = isQos;
     QosOptionsOptions = qosOptions;
     EnableEndpointEndpointRateLimiting = enableEndpointRateLimiting;
     RateLimitOptions   = ratelimitOptions;
     HttpHandlerOptions = httpHandlerOptions;
 }
예제 #4
0
 public ReRoute(DownstreamPathTemplate downstreamPathTemplate,
                string upstreamTemplate, string upstreamHttpMethod,
                string upstreamTemplatePattern,
                bool isAuthenticated, AuthenticationOptions authenticationOptions,
                List <ClaimToThing> configurationHeaderExtractorProperties,
                List <ClaimToThing> claimsToClaims,
                Dictionary <string, string> routeClaimsRequirement, bool isAuthorised,
                List <ClaimToThing> claimsToQueries,
                string requestIdKey, bool isCached, CacheOptions fileCacheOptions,
                string downstreamScheme, string loadBalancer, string downstreamHost,
                int downstreamPort, string loadBalancerKey, ServiceProviderConfiguraion serviceProviderConfiguraion)
 {
     LoadBalancerKey             = loadBalancerKey;
     ServiceProviderConfiguraion = serviceProviderConfiguraion;
     LoadBalancer            = loadBalancer;
     DownstreamHost          = downstreamHost;
     DownstreamPort          = downstreamPort;
     DownstreamPathTemplate  = downstreamPathTemplate;
     UpstreamTemplate        = upstreamTemplate;
     UpstreamHttpMethod      = upstreamHttpMethod;
     UpstreamTemplatePattern = upstreamTemplatePattern;
     IsAuthenticated         = isAuthenticated;
     AuthenticationOptions   = authenticationOptions;
     RouteClaimsRequirement  = routeClaimsRequirement;
     IsAuthorised            = isAuthorised;
     RequestIdKey            = requestIdKey;
     IsCached         = isCached;
     FileCacheOptions = fileCacheOptions;
     ClaimsToQueries  = claimsToQueries
                        ?? new List <ClaimToThing>();
     ClaimsToClaims = claimsToClaims
                      ?? new List <ClaimToThing>();
     ClaimsToHeaders = configurationHeaderExtractorProperties
                       ?? new List <ClaimToThing>();
     DownstreamScheme = downstreamScheme;
 }
예제 #5
0
 public DownstreamReRoute(
     string key,
     UpstreamPathTemplate upstreamPathTemplate,
     List <HeaderFindAndReplace> upstreamHeadersFindAndReplace,
     List <HeaderFindAndReplace> downstreamHeadersFindAndReplace,
     List <DownstreamHostAndPort> downstreamAddresses,
     string serviceName,
     string serviceNamespace,
     HttpHandlerOptions httpHandlerOptions,
     bool useServiceDiscovery,
     bool enableEndpointEndpointRateLimiting,
     QoSOptions qosOptions,
     string downstreamScheme,
     string requestIdKey,
     bool isCached,
     CacheOptions cacheOptions,
     LoadBalancerOptions loadBalancerOptions,
     RateLimitOptions rateLimitOptions,
     Dictionary <string, string> routeClaimsRequirement,
     List <ClaimToThing> claimsToQueries,
     List <ClaimToThing> claimsToHeaders,
     List <ClaimToThing> claimsToClaims,
     List <ClaimToThing> claimsToPath,
     bool isAuthenticated,
     bool isAuthorised,
     AuthenticationOptions authenticationOptions,
     DownstreamPathTemplate downstreamPathTemplate,
     string loadBalancerKey,
     List <string> delegatingHandlers,
     List <AddHeader> addHeadersToDownstream,
     List <AddHeader> addHeadersToUpstream,
     bool dangerousAcceptAnyServerCertificateValidator,
     SecurityOptions securityOptions)
 {
     DangerousAcceptAnyServerCertificateValidator = dangerousAcceptAnyServerCertificateValidator;
     AddHeadersToDownstream = addHeadersToDownstream;
     DelegatingHandlers     = delegatingHandlers;
     Key = key;
     UpstreamPathTemplate            = upstreamPathTemplate;
     UpstreamHeadersFindAndReplace   = upstreamHeadersFindAndReplace ?? new List <HeaderFindAndReplace>();
     DownstreamHeadersFindAndReplace = downstreamHeadersFindAndReplace ?? new List <HeaderFindAndReplace>();
     DownstreamAddresses             = downstreamAddresses ?? new List <DownstreamHostAndPort>();
     ServiceName         = serviceName;
     ServiceNamespace    = serviceNamespace;
     HttpHandlerOptions  = httpHandlerOptions;
     UseServiceDiscovery = useServiceDiscovery;
     EnableEndpointEndpointRateLimiting = enableEndpointEndpointRateLimiting;
     QosOptions             = qosOptions;
     DownstreamScheme       = downstreamScheme;
     RequestIdKey           = requestIdKey;
     IsCached               = isCached;
     CacheOptions           = cacheOptions;
     LoadBalancerOptions    = loadBalancerOptions;
     RateLimitOptions       = rateLimitOptions;
     RouteClaimsRequirement = routeClaimsRequirement;
     ClaimsToQueries        = claimsToQueries ?? new List <ClaimToThing>();
     ClaimsToHeaders        = claimsToHeaders ?? new List <ClaimToThing>();
     ClaimsToClaims         = claimsToClaims ?? new List <ClaimToThing>();
     ClaimsToPath           = claimsToPath ?? new List <ClaimToThing>();
     IsAuthenticated        = isAuthenticated;
     IsAuthorised           = isAuthorised;
     AuthenticationOptions  = authenticationOptions;
     DownstreamPathTemplate = downstreamPathTemplate;
     LoadBalancerKey        = loadBalancerKey;
     AddHeadersToUpstream   = addHeadersToUpstream;
     SecurityOptions        = securityOptions;
 }