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 ??
httpContext.Request.Headers.Host.ToString(),
factory: partition => new FixedWindowRateLimiterOptions
{
AutoReplenishment = true,
PermitLimit = 10,
QueueLimit = 0,
Window = TimeSpan.FromMinutes(1)
}));
{
AutoReplenishment = true,
PermitLimit = 10,
QueueLimit = 0,
Window = TimeSpan.FromMinutes(1)
}));
});
builder.AddCustomObservability();

View File

@ -2,5 +2,5 @@ namespace BookingMonolith;
public class BookingMonolithRoot
{
}

View File

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

View File

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

View File

@ -2,5 +2,5 @@ namespace BookingMonolith.Identity;
public class IdentityRoot
{
}

View File

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