mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-04 11:58:46 +08:00
feat: add monolith source
This commit is contained in:
parent
20a8363103
commit
16109bf052
@ -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();
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user