Add RecAction configuration support

Introduced a new `RecAction` configuration section in `appsettings.json` with a `MaxConcurrentInvocations` property. Updated `Program.cs` to use the `Configuration` object to pass the `RecAction` settings to the `AddRecServices` method. Replaced the `MediatRLicense` value in `appsettings.json` with no functional changes.
This commit is contained in:
2025-11-27 10:12:44 +01:00
parent 8aa43db909
commit cd8f757c43
2 changed files with 7 additions and 1 deletions

View File

@@ -4,10 +4,13 @@ using ReC.Application;
var builder = WebApplication.CreateBuilder(args);
var config = builder.Configuration;
// Add services to the container.
builder.Services.AddRecServices(options =>
{
options.LuckyPennySoftwareLicenseKey = builder.Configuration["LuckyPennySoftwareLicenseKey"];
options.ConfigureRecActions(config.GetSection("RecAction"));
});
builder.Services.AddRecInfrastructure(options =>