From 47fda43e31384ac447199405e9bbd396daed1c9c Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sat, 18 Mar 2023 01:04:11 -0500 Subject: [PATCH] Remove references to FusionCache --- LANCommander/Program.cs | 1 - LANCommander/Services/ServerService.cs | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/LANCommander/Program.cs b/LANCommander/Program.cs index 48ee137..e40bfe4 100644 --- a/LANCommander/Program.cs +++ b/LANCommander/Program.cs @@ -78,7 +78,6 @@ builder.Services.AddControllers().AddJsonOptions(x => x.JsonSerializerOptions.ReferenceHandler = System.Text.Json.Serialization.ReferenceHandler.IgnoreCycles; }); -builder.Services.AddFusionCache(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); diff --git a/LANCommander/Services/ServerService.cs b/LANCommander/Services/ServerService.cs index c7db2e5..a2d49fa 100644 --- a/LANCommander/Services/ServerService.cs +++ b/LANCommander/Services/ServerService.cs @@ -1,16 +1,11 @@ using LANCommander.Data; using LANCommander.Data.Models; using System.Diagnostics; -using ZiggyCreatures.Caching.Fusion; namespace LANCommander.Services { public class ServerService : BaseDatabaseService { - private IFusionCache Cache; - public ServerService(DatabaseContext dbContext, IHttpContextAccessor httpContextAccessor, IFusionCache cache) : base(dbContext, httpContextAccessor) - { - Cache = cache; - } + public ServerService(DatabaseContext dbContext, IHttpContextAccessor httpContextAccessor) : base(dbContext, httpContextAccessor) { } } }