Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }