Remove obsolete State class and DI registration

Removed the deprecated State class and its properties from the codebase. Also removed State from the dependency injection configuration, as it is no longer used.
This commit is contained in:
2026-03-09 16:52:52 +01:00
parent 6f7b04a26e
commit 070d9be00c
2 changed files with 0 additions and 14 deletions

View File

@@ -18,7 +18,6 @@ public static class DependencyInjection
services.AddScoped<PDFBurner>();
services.AddScoped<PDFMerger>();
services.AddScoped<ReportModel>();
services.AddSingleton<State>();
services.AddScoped<MSSQLServer>();
//TODO: Check lifetime of services. They might be singleton or scoped.

View File

@@ -1,13 +0,0 @@
using DigitalData.Modules.Database;
using EnvelopeGenerator.Domain.Entities;
namespace EnvelopeGenerator.ServiceHost.Jobs;
[Obsolete("Use DbContext")]
public class State
{
public int UserId { get; set; }
public FormUser? User { get; set; }
public Config? Config { get; set; }
public MSSQLServer? Database { get; set; }
}