UseApiVersionSelector Method
Definition
- Namespace
- Codebelt.Extensions.Asp.Versioning
- Assemblies
- Codebelt.Extensions.Asp.Versioning.dll
UseApiVersionSelector<T>()
Specify what Asp.Versioning.IApiVersionSelector to set on the ApiVersionSelectorType. Default is Asp.Versioning.CurrentImplementationApiVersionSelector.
public RestfulApiVersioningOptions UseApiVersionSelector<T>() where T : class, IApiVersionSelector
Returns
- RestfulApiVersioningOptions
A reference to this instance so that additional calls can be chained.
Type Parameters
TThe type that implements the Asp.Versioning.IApiVersionSelector interface.