예제 #1
0
 public void MultipleApiVersions(
     IEnumerable <Info> apiVersions,
     Func <ApiDescription, string, bool> versionSupportResolver)
 {
     ApiVersions.Clear();
     foreach (var version in apiVersions)
     {
         ApiVersions.Add(version);
     }
     VersionSupportResolver = versionSupportResolver;
 }
예제 #2
0
 public void SingleApiVersion(Info info)
 {
     ApiVersions.Clear();
     ApiVersions.Add(info);
     VersionSupportResolver = null;
 }