feat: add monolith source

This commit is contained in:
Meysam Hadeli 2025-04-08 01:42:21 +03:30
parent 20a8363103
commit 16109bf052
6 changed files with 11 additions and 11 deletions

View File

@ -116,12 +116,12 @@ public static class SharedInfrastructureExtensions
partitionKey: httpContext.User.Identity?.Name ?? partitionKey: httpContext.User.Identity?.Name ??
httpContext.Request.Headers.Host.ToString(), httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions factory: partition => new FixedWindowRateLimiterOptions
{ {
AutoReplenishment = true, AutoReplenishment = true,
PermitLimit = 10, PermitLimit = 10,
QueueLimit = 0, QueueLimit = 0,
Window = TimeSpan.FromMinutes(1) Window = TimeSpan.FromMinutes(1)
})); }));
}); });
builder.AddCustomObservability(); builder.AddCustomObservability();

View File

@ -1,4 +1,4 @@
using System; using System;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable

View File

@ -1,4 +1,4 @@
using System; using System;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

View File

@ -1,4 +1,4 @@
using System; using System;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable