コード例 #1
0
 public ConfigureSwaggerVersions(
     VersionedControllerProvider controllerProvider,
     IOptions <ApiVersioningOptions> versioningOptionsAccessor)
 {
     ControllerProvider = controllerProvider;
     VersioningOptions  = versioningOptionsAccessor.Value;
 }
コード例 #2
0
 public ConfigureSwaggerVersions(
     VersionedControllerProvider controllerProvider,
     IOptions <ApiVersioningOptions> versioningOptionsAccessor,
     Action <string, Info> configureVersionInfo)
 {
     ControllerProvider   = controllerProvider;
     ConfigureVersionInfo = configureVersionInfo;
     VersioningOptions    = versioningOptionsAccessor.Value;
 }