コード例 #1
0
 public VersionedApiConvention(
     ILogger <VersionedApiConvention> logger,
     VersionedControllerProvider controllerProvider,
     IOptions <ApiVersioningOptions> optionsAccessor)
 {
     Logger             = logger;
     ControllerProvider = controllerProvider;
     Options            = optionsAccessor.Value;
 }
コード例 #2
0
 public VersionedApiApplicationModelProvider(
     IOptions <MvcOptions> mvcOptions,
     IModelMetadataProvider modelMetadataProvider,
     ILogger <VersionedApiApplicationModelProvider> logger,
     VersionedControllerProvider controllerProvider,
     IOptions <ApiVersioningOptions> optionsAccessor) : base(mvcOptions, modelMetadataProvider)
 {
     Logger             = logger;
     ControllerProvider = controllerProvider;
     Options            = optionsAccessor.Value;
 }