Tenantry ProAPI reference
ApplicationBuilderTelemetryExtensions class
Namespace: Tenantry.Pro.AspNetCore.Telemetry.Extensions · Package: Tenantry.Pro.AspNetCore · API reference
Extension methods for wiring tenant metrics middleware into the ASP.NET Core pipeline.
public static class ApplicationBuilderTelemetryExtensionsMethods
UseTenantryMetrics(IApplicationBuilder)
Adds the per-tenant request metrics middleware to the pipeline. Must be placed after UseTenantry() so that ITenantContext<TKey> is populated before metrics are recorded.
public static IApplicationBuilder UseTenantryMetrics(this IApplicationBuilder app)Parameters:
appIApplicationBuilder: The application's request pipeline.
Returns: IApplicationBuilder
app.UseTenantry();
app.UseTenantryMetrics(); // after UseTenantry()