public AttributeRoutingConfiguration() : base(() => new MvcRouteHandler()) { _attributeFactory = new AttributeRouteFactory(this); _parameterFactory = new RouteParameterFactory(); _routeConstraintFactory = new RouteConstraintFactory(this); }
public HttpAttributeRoutingConfiguration() : base(() => HttpControllerRouteHandler.Instance) { _attributeFactory = new AttributeRouteFactory(this); _parameterFactory = new RouteParameterFactory(); _routeConstraintFactory = new RouteConstraintFactory(this); }
public RouteBuilder(ConfigurationBase configuration) { if (configuration == null) throw new ArgumentNullException("configuration"); _configuration = configuration; _routeFactory = configuration.AttributeRouteFactory; _routeConstraintFactory = configuration.RouteConstraintFactory; _parameterFactory = configuration.ParameterFactory; }
public HttpWebAttributeRoutingConfiguration() { _attributeFactory = new AttributeRouteFactory(this); _parameterFactory = new RouteParameterFactory(); _routeConstraintFactory = new RouteConstraintFactory(this); RouteHandlerFactory = () => HttpControllerRouteHandler.Instance; RegisterDefaultInlineRouteConstraints<IRouteConstraint>(typeof(Web.Constraints.RegexRouteConstraint).Assembly); }
public HttpAttributeRoutingConfiguration() { _attributeFactory = new HttpAttributeRouteFactory(this); _routeConstraintFactory = new HttpRouteConstraintFactory(this); _parameterFactory = new HttpRouteParameterFactory(); CurrentUICultureResolver = (ctx, data) => Thread.CurrentThread.CurrentUICulture.Name; RegisterDefaultInlineRouteConstraints <IHttpRouteConstraint>(typeof(RegexRouteConstraintAttribute).Assembly); }
public RouteBuilder(AttributeRoutingConfigurationBase configuration) { if (configuration == null) { throw new ArgumentNullException("configuration"); } _configuration = configuration; _routeFactory = configuration.AttributeRouteFactory; _routeConstraintFactory = configuration.RouteConstraintFactory; _parameterFactory = configuration.ParameterFactory; }
public HttpAttributeRoutingConfiguration() { _attributeFactory = new AttributeRouteFactory(this); _routeConstraintFactory = new RouteConstraintFactory(this); _parameterFactory = new RouteParameterFactory(); RegisterDefaultInlineRouteConstraints<IHttpRouteConstraint>(typeof(RegexRouteConstraint).Assembly); // Must turn on AutoGenerateRouteNames and use the Unique RouteNameBuilder for this to work out-of-the-box. AutoGenerateRouteNames = true; RouteNameBuilder = RouteNameBuilders.Unique; }