Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
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);
 }
Exemplo n.º 6
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);
 }
Exemplo n.º 7
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;
 }
Exemplo n.º 8
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);
 }