コード例 #1
0
 public ClaimsToClaimsMiddleware(OcelotRequestDelegate next,
                                 IOcelotLoggerFactory loggerFactory,
                                 IAddClaimsToRequest addClaimsToRequest)
     : base(loggerFactory.CreateLogger <ClaimsToClaimsMiddleware>())
 {
     _next = next;
     _addClaimsToRequest = addClaimsToRequest;
 }
コード例 #2
0
 public ClaimsBuilderMiddleware(OcelotRequestDelegate next,
                                IOcelotLoggerFactory loggerFactory,
                                IAddClaimsToRequest addClaimsToRequest)
 {
     _next = next;
     _addClaimsToRequest = addClaimsToRequest;
     _logger             = loggerFactory.CreateLogger <ClaimsBuilderMiddleware>();
 }
コード例 #3
0
 public ClaimsBuilderMiddleware(RequestDelegate next,
                                IRequestScopedDataRepository requestScopedDataRepository,
                                IOcelotLoggerFactory loggerFactory,
                                IAddClaimsToRequest addClaimsToRequest)
     : base(requestScopedDataRepository)
 {
     _next = next;
     _addClaimsToRequest = addClaimsToRequest;
     _logger             = loggerFactory.CreateLogger <ClaimsBuilderMiddleware>();
 }