Table of Contents

UseApiVersionSelector Method

Definition

Namespace
Codebelt.Extensions.Asp.Versioning
Assemblies
Codebelt.Extensions.Asp.Versioning.dll
Source
src/Codebelt.Extensions.Asp.Versioning/RestfulApiVersioningOptions.cs

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

T

The type that implements the Asp.Versioning.IApiVersionSelector interface.