コード例 #1
0
 public static ApiVersioningOptions VersionByQuery(this ApiVersioningOptions options, string parameterName)
 {
     options.VersioningScheme = new QueryVersioningScheme(parameterName);
     return(options);
 }
コード例 #2
0
 public static ApiVersioningOptions VersionByHeader(this ApiVersioningOptions options, string headerName)
 {
     options.VersioningScheme = new HeaderVersioningScheme(headerName);
     return(options);
 }
コード例 #3
0
 public static ApiVersioningOptions VersionByQuery(this ApiVersioningOptions options)
 {
     return(options.VersionByQuery("api-version"));
 }
コード例 #4
0
 public static ApiVersioningOptions VersionByHeader(this ApiVersioningOptions options)
 {
     return(options.VersionByHeader("X-Api-Version"));
 }