Пример #1
0
 public GateRoutingMiddleware(IRouteDefinitionMatcher routeDefinitionMatcher,
                              ILogger <GateRoutingMiddleware> logger, RequestDelegate next)
 {
     _routeDefinitionMatcher = routeDefinitionMatcher;
     _logger = logger;
     _next   = next;
 }
Пример #2
0
        public void Initialize()
        {
            _next = A.Fake <RequestDelegate>();
            _routeDefinitionMatcher = A.Fake <IRouteDefinitionMatcher>();
            var logger = A.Fake <ILogger <GateRoutingMiddleware> >();

            _middleware = new GateRoutingMiddleware(_routeDefinitionMatcher, logger, _next);
        }
Пример #3
0
 public GateCorsMiddleware(IRouteDefinitionMatcher routeDefinitionMatcher, RequestDelegate next)
 {
     _routeDefinitionMatcher = routeDefinitionMatcher;
     _next = next;
 }
Пример #4
0
 public void Initialize()
 {
     _next = A.Fake <RequestDelegate>();
     _routeDefinitionMatcher = A.Fake <IRouteDefinitionMatcher>();
     _middleware             = new GateCorsMiddleware(_routeDefinitionMatcher, _next);
 }