EndpointConventionBuilderLanguageExtensions.WithLanguage<TBuilder> method

Tags any endpoint builder with ScriptLanguageAttribute. Works for RouteHandlerBuilder, RouteGroupBuilder, etc.

public static TBuilder WithLanguage<TBuilder>(this TBuilder builder, ScriptLanguage language)
    where TBuilder : IEndpointConventionBuilder

See Also