< Summary

Information
Class: Elsa.Tenants.Endpoints.Tenants.Refresh.Endpoint
Assembly: Elsa.Tenants
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants/Endpoints/Tenants/Refresh/Endpoint.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 19
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
Configure()100%210%
HandleAsync()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants/Endpoints/Tenants/Refresh/Endpoint.cs

#LineLine coverage
 1using Elsa.Abstractions;
 2using Elsa.Common.Multitenancy;
 3
 4namespace Elsa.Tenants.Endpoints.Tenants.Refresh;
 5
 06public class Endpoint(ITenantService tenantService) : ElsaEndpointWithoutRequest
 7{
 8    public override void Configure()
 9    {
 010        Post("/tenants/refresh");
 011        ConfigurePermissions("execute:tenants:refresh");
 012    }
 13
 14    public override async Task HandleAsync(CancellationToken ct)
 15    {
 016        await tenantService.RefreshAsync(ct);
 017        await Send.OkAsync(ct);
 018    }
 19}