public HttpRequestHeadersBuilderMiddleware(OcelotRequestDelegate next,
                                            IOcelotLoggerFactory loggerFactory,
                                            IAddHeadersToRequest addHeadersToRequest)
 {
     _next = next;
     _addHeadersToRequest = addHeadersToRequest;
     _logger = loggerFactory.CreateLogger <HttpRequestHeadersBuilderMiddleware>();
 }
 public ClaimsToHeadersMiddleware(RequestDelegate next,
                                  IOcelotLoggerFactory loggerFactory,
                                  IAddHeadersToRequest addHeadersToRequest)
     : base(loggerFactory.CreateLogger <ClaimsToHeadersMiddleware>())
 {
     _next = next;
     _addHeadersToRequest = addHeadersToRequest;
 }
示例#3
0
 public HttpRequestHeadersBuilderMiddleware(RequestDelegate next,
                                            IOcelotLoggerFactory loggerFactory,
                                            IRequestScopedDataRepository requestScopedDataRepository,
                                            IAddHeadersToRequest addHeadersToRequest)
     : base(requestScopedDataRepository)
 {
     _next = next;
     _addHeadersToRequest = addHeadersToRequest;
     _logger = loggerFactory.CreateLogger <HttpRequestHeadersBuilderMiddleware>();
 }
 public HttpHeadersTransformationMiddleware(OcelotRequestDelegate next,
                                            IOcelotLoggerFactory loggerFactory,
                                            IHttpContextRequestHeaderReplacer preReplacer,
                                            IHttpResponseHeaderReplacer postReplacer,
                                            IAddHeadersToResponse addHeadersToResponse,
                                            IAddHeadersToRequest addHeadersToRequest)
     : base(loggerFactory.CreateLogger <HttpHeadersTransformationMiddleware>())
 {
     _addHeadersToResponse = addHeadersToResponse;
     _addHeadersToRequest  = addHeadersToRequest;
     _next         = next;
     _postReplacer = postReplacer;
     _preReplacer  = preReplacer;
 }