Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpVerbAttribute" /> class.
 /// </summary>
 /// <param name="httpMethods">The HTTP methods the action supports.</param>
 /// <param name="routeTemplate">The route template describing the URI pattern to match against.</param>
 protected HttpVerbAttribute(HttpVerbs httpMethods, string routeTemplate)
 {
     _httpVerbsValidator = new HttpVerbsValidator(httpMethods);
     _routeTemplate      = routeTemplate;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AcceptVerbsAttribute" /> class.
 /// </summary>
 /// <param name="verbs">The HTTP methods the action supports.</param>
 public AcceptVerbsAttribute(params string[] verbs)
 {
     _httpVerbsValidator = new HttpVerbsValidator(verbs);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpVerbAttribute" /> class.
 /// </summary>
 /// <param name="httpMethods">The HTTP methods the action supports.</param>
 protected HttpVerbAttribute(HttpVerbs httpMethods)
 {
     _httpVerbsValidator = new HttpVerbsValidator(httpMethods);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AcceptVerbsAttribute" /> class.
 /// </summary>
 /// <param name="verbs">The HTTP methods the action supports.</param>
 public AcceptVerbsAttribute(HttpVerbs verbs)
 {
     _httpVerbsValidator = new HttpVerbsValidator(verbs);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AcceptVerbsAttribute" /> class.
 /// </summary>
 /// <param name="verbs">The HTTP methods the action supports.</param>
 public AcceptVerbsAttribute(params string[] verbs)
 {
     _httpVerbsValidator = new HttpVerbsValidator(verbs);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AcceptVerbsAttribute" /> class.
 /// </summary>
 /// <param name="verbs">The HTTP methods the action supports.</param>
 public AcceptVerbsAttribute(HttpVerbs verbs)
 {
     _httpVerbsValidator = new HttpVerbsValidator(verbs);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpVerbAttribute" /> class.
 /// </summary>
 /// <param name="httpMethods">The HTTP methods the action supports.</param>
 /// <param name="routeTemplate">The route template describing the URI pattern to match against.</param>
 protected HttpVerbAttribute(HttpVerbs httpMethods, string routeTemplate)
 {
     _httpVerbsValidator = new HttpVerbsValidator(httpMethods);
     _routeTemplate = routeTemplate;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpVerbAttribute" /> class.
 /// </summary>
 /// <param name="httpMethods">The HTTP methods the action supports.</param>
 protected HttpVerbAttribute(HttpVerbs httpMethods)
 {
     _httpVerbsValidator = new HttpVerbsValidator(httpMethods);
 }