コード例 #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;
 }
コード例 #2
0
ファイル: AcceptVerbsAttribute.cs プロジェクト: terry2012/DSV
 /// <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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: AcceptVerbsAttribute.cs プロジェクト: terry2012/DSV
 /// <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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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;
 }
コード例 #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);
 }