Example #1
0
        private IJancyExpressRoutingConfigurationExpression Verb(JancyExpressRoutingVerb verb, string template)
        {
            var routingConfiguration = new JancyExpressRoutingConfigurationExpression(verb, template);

            RoutingConfigurations.Add(routingConfiguration);
            return(routingConfiguration);
        }
 public JancyExpressRoutingConfigurationExpression(JancyExpressRoutingVerb verb, string template)
 {
     Verb     = verb;
     Template = template;
     HttpHandlerMiddlewareTypes = new List <Type>();
     ApiHandlerMiddlewareTypes  = new List <Type>();
 }
Example #3
0
 public JancyExpressRoutingConfiguration(JancyExpressRoutingVerb verb, string template, Type httpHandlerType, Type apiHandlerType, List <Type> httpHandlerMiddlewareTypes, List <Type> apiHandlerMiddlewareTypes)
 {
     Verb                       = verb;
     Template                   = template;
     HttpHandlerType            = httpHandlerType;
     ApiHandlerType             = apiHandlerType;
     HttpHandlerMiddlewareTypes = httpHandlerMiddlewareTypes;
     ApiHandlerMiddlewareTypes  = apiHandlerMiddlewareTypes;
 }