Docs
Tenantry CoreAPI reference

EndpointConventionBuilderExtensions class

Namespace: Tenantry.AspNetCore.Extensions · Package: Tenantry.AspNetCore · API reference

Extension methods for applying Tenantry endpoint metadata.

public static class EndpointConventionBuilderExtensions

Methods

AllowMissingTenant<TBuilder>(TBuilder)

Allows the endpoint to execute without a resolved tenant, even when tenant resolution is required by default.

public static TBuilder AllowMissingTenant<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder

Type parameters:

  • TBuilder: The endpoint convention builder type.

Parameters:

  • builder TBuilder: The endpoint, or group of endpoints, to configure.

Returns: TBuilder: The same builder for chaining.

RequireTenant<TBuilder>(TBuilder)

Requires Tenantry to resolve a tenant for the endpoint.

public static TBuilder RequireTenant<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder

Type parameters:

  • TBuilder: The endpoint convention builder type.

Parameters:

  • builder TBuilder: The endpoint, or group of endpoints, to configure.

Returns: TBuilder: The same builder for chaining.

On this page