public async Task Invoke(HttpContext context, TenantService service) { if (!await service.SetTenant(context)) return; await _next(context); }
public async Task Invoke(HttpContext context, TenantService service) { if (!await service.SetTenant(context)) { return; } await _next(context); }