-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
33 lines (24 loc) · 897 Bytes
/
Copy pathProgram.cs
File metadata and controls
33 lines (24 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using SIFTGuardian.Agents;
using SIFTGuardian.Services;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
// Register Custom Incident Response Services
builder.Services.AddSingleton<EvidenceService>();
builder.Services.AddSingleton<LoggingService>();
builder.Services.AddSingleton<ReportService>();
// Register Agents
builder.Services.AddTransient<InvestigatorAgent>();
builder.Services.AddTransient<SkepticAgent>();
builder.Services.AddTransient<VerifierAgent>();
builder.Services.AddTransient<ReportAgent>();
// Register Orchestrator
builder.Services.AddSingleton<AgentOrchestrator>();
var app = builder.Build();
// Enable serving default files (index.html) and static files from wwwroot
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
app.Run();