/// <summary>
 /// Route used by the AttributeRouting framework in self-host projects.
 /// </summary>
 public HttpAttributeRoute(string url,
                           HttpRouteValueDictionary defaults,
                           HttpRouteValueDictionary constraints,
                           HttpRouteValueDictionary dataTokens,
                           HttpConfigurationBase configuration)
     : base(url, defaults, constraints, dataTokens, configuration.MessageHandler)
 {
     _configuration = configuration;
 }
Exemple #2
0
 /// <summary>
 /// Route used by the AttributeRouting framework in self-host projects.
 /// </summary>
 public HttpAttributeRoute(string url,
                           HttpRouteValueDictionary defaults,
                           HttpRouteValueDictionary constraints,
                           HttpRouteValueDictionary dataTokens,
                           HttpConfigurationBase configuration)
     : base(url, defaults, constraints, dataTokens, configuration.MessageHandler)
 {
     _configuration         = configuration;
     _visitor               = new AttributeRouteVisitor(this, configuration);
     QueryStringConstraints = new RouteValueDictionary();
     QueryStringDefaults    = new RouteValueDictionary();
 }
 public AttributeRouteFactory(HttpConfigurationBase configuration)
 {
     _configuration = configuration;
 }
 public RouteConstraintFactory(HttpConfigurationBase configuration)
 {
     _configuration = configuration;
 }
 public RouteConstraintFactory(HttpConfigurationBase configuration)
 {
     _configuration = configuration;
 }
 public AttributeRouteFactory(HttpConfigurationBase configuration)
 {
     _configuration = configuration;
 }