2026년 4월 30일 Stable State
This commit is contained in:
@@ -75,6 +75,15 @@ builder.Services.AddSingleton<IExperionOpcServerService>(
|
||||
builder.Services.AddHostedService(
|
||||
sp => sp.GetRequiredService<ExperionOpcServerService>());
|
||||
|
||||
// ── FastTable Service ─────────────────────────────────────────────────────────
|
||||
// 중요: Singleton으로 하나만 생성 후 IExperionFastService와 IHostedService 양쪽에 같은 인스턴스 공유
|
||||
builder.Services.AddSingleton<ExperionFastService>();
|
||||
builder.Services.AddSingleton<IExperionFastService>(sp => sp.GetRequiredService<ExperionFastService>());
|
||||
builder.Services.AddHostedService(sp => sp.GetRequiredService<ExperionFastService>());
|
||||
|
||||
// ── FastTable Cleanup Service ─────────────────────────────────────────────────
|
||||
builder.Services.AddHostedService<ExperionFastCleanupService>();
|
||||
|
||||
// ── CORS ──────────────────────────────────────────────────────────────────────
|
||||
builder.Services.AddCors(opt =>
|
||||
opt.AddDefaultPolicy(p => p.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader()));
|
||||
|
||||
Reference in New Issue
Block a user