Tenantry CoreAPI reference
EndpointConventionBuilderExtensions class
Namespace: Tenantry.AspNetCore.Extensions · Package: Tenantry.AspNetCore · API reference
Extension methods for applying Tenantry endpoint metadata.
public static class EndpointConventionBuilderExtensionsMethods
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 : IEndpointConventionBuilderType parameters:
TBuilder: The endpoint convention builder type.
Parameters:
builderTBuilder: 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 : IEndpointConventionBuilderType parameters:
TBuilder: The endpoint convention builder type.
Parameters:
builderTBuilder: The endpoint, or group of endpoints, to configure.
Returns: TBuilder: The same builder for chaining.