From e0cf80a5d0e2d6898b611892a331aa917b9370d9 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 29 Sep 2023 17:46:47 +1000 Subject: Finalised security service --- Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Program.cs') diff --git a/Program.cs b/Program.cs index e78f0d4..5cc7839 100644 --- a/Program.cs +++ b/Program.cs @@ -1,7 +1,8 @@ -using Microsoft.EntityFrameworkCore; -using System.Text.Json.Serialization; +using HyperBooru.PrincipalProviders; using HyperBooru.Services; using Microsoft.AspNetCore.Authentication.Cookies; +using Microsoft.EntityFrameworkCore; +using System.Text.Json.Serialization; namespace HyperBooru; @@ -21,6 +22,8 @@ public class Program { // Add our custom services builder.Services.AddSingleton(); builder.Services.AddDbContextFactory(); + builder.Services.AddSingleton(); + builder.Services.AddSingleton(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); -- cgit v1.3