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>(); }
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; }