feat: Добавил генерацию api документации для git
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 12s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 2m56s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 15s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 8s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 12s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 2m56s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 15s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 8s
This commit is contained in:
@@ -18,6 +18,8 @@ using UniVerse.Infrastructure.Notifications;
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
var useAspire = builder.Configuration.GetValue<bool>("Aspire:Enabled");
|
||||
var isOpenApiGeneration = AppDomain.CurrentDomain.GetAssemblies()
|
||||
.Any(assembly => assembly.GetName().Name == "GetDocument.Insider");
|
||||
|
||||
if (useAspire)
|
||||
{
|
||||
@@ -98,10 +100,13 @@ builder.Services.AddTransient<NotificationJob>();
|
||||
builder.Services.Configure<EmailNotificationOptions>(builder.Configuration.GetSection("Email:Smtp"));
|
||||
|
||||
builder.Services.AddQuartz();
|
||||
builder.Services.AddQuartzHostedService(options =>
|
||||
if (!isOpenApiGeneration)
|
||||
{
|
||||
options.WaitForJobsToComplete = true;
|
||||
});
|
||||
builder.Services.AddQuartzHostedService(options =>
|
||||
{
|
||||
options.WaitForJobsToComplete = true;
|
||||
});
|
||||
}
|
||||
|
||||
// --- HTTP Clients ---
|
||||
builder.Services.AddHttpClient<ILlmClient, LlmClient>(client =>
|
||||
@@ -117,8 +122,11 @@ builder.Services.AddHttpClient<IModeusApiClient, ModeusApiClient>(client =>
|
||||
});
|
||||
|
||||
// --- Background Services ---
|
||||
builder.Services.AddHostedService<LlmProcessingBackgroundService>();
|
||||
builder.Services.AddHostedService<AchievementCatalogHostedService>();
|
||||
if (!isOpenApiGeneration)
|
||||
{
|
||||
builder.Services.AddHostedService<LlmProcessingBackgroundService>();
|
||||
builder.Services.AddHostedService<AchievementCatalogHostedService>();
|
||||
}
|
||||
|
||||
// --- Controllers ---
|
||||
builder.Services.AddControllers()
|
||||
|
||||
Reference in New Issue
Block a user