diff --git a/COMET.Web.Common/Services/Cache/CacheService.cs b/COMET.Web.Common/Services/Cache/CacheService.cs
index a56d38ad..630c1b3e 100644
--- a/COMET.Web.Common/Services/Cache/CacheService.cs
+++ b/COMET.Web.Common/Services/Cache/CacheService.cs
@@ -36,7 +36,7 @@ public class CacheService : ICacheService
///
/// Holds all the settings that can be used during the browser session's lifetime to make the user's experience better
///
- private ConcurrentDictionary browserSessionSettings = new();
+ private readonly ConcurrentDictionary browserSessionSettings = new();
///
/// Tries to get a stored value in the BrowserSessionSettings Dictionary
diff --git a/COMET.Web.Common/ViewModels/Components/OpenModelViewModel.cs b/COMET.Web.Common/ViewModels/Components/OpenModelViewModel.cs
index 6adc530d..170f5ddb 100644
--- a/COMET.Web.Common/ViewModels/Components/OpenModelViewModel.cs
+++ b/COMET.Web.Common/ViewModels/Components/OpenModelViewModel.cs
@@ -240,7 +240,7 @@ public virtual async Task> OpenSession()
/// The of the to select
public void PreSelectIteration(Guid modelId, Guid iterationId, Guid domainId)
{
- if (!this.cacheService.TryGetBrowserSessionSetting(BrowserSessionSettingKey.LastUsedIterationData, out var lastSelectedIterationData))
+ if (!this.cacheService.TryGetBrowserSessionSetting(BrowserSessionSettingKey.LastUsedIterationData, out _))
{
this.selectedEngineeringModel = this.sessionService.OpenEngineeringModels.FirstOrDefault(x => x.Iid == modelId)?.EngineeringModelSetup;
var iterationSetup = this.SelectedEngineeringModel?.IterationSetup.Find(x => x.IterationIid == iterationId);
diff --git a/COMETwebapp/ViewModels/Pages/TabsViewModel.cs b/COMETwebapp/ViewModels/Pages/TabsViewModel.cs
index 34481272..ca1354d4 100644
--- a/COMETwebapp/ViewModels/Pages/TabsViewModel.cs
+++ b/COMETwebapp/ViewModels/Pages/TabsViewModel.cs
@@ -47,11 +47,6 @@ public class TabsViewModel : DisposableObject, ITabsViewModel
///
private readonly IServiceProvider serviceProvider;
- ///
- /// Gets the injected
- ///
- private readonly ICacheService cacheService;
-
///
/// Gets the injected
///
@@ -72,7 +67,6 @@ public TabsViewModel(ISessionService sessionService, IServiceProvider servicePro
{
this.sessionService = sessionService;
this.serviceProvider = serviceProvider;
- this.cacheService = cacheService;
this.Disposables.Add(this.WhenAnyValue(x => x.SelectedApplication).Subscribe(_ => this.OnSelectedApplicationChange()));
this.Disposables.Add(this.WhenAnyValue(x => x.MainPanel.CurrentTab).Subscribe(_ => this.OnCurrentTabChange(this.MainPanel)));
this.Disposables.Add(this.WhenAnyValue(x => x.SidePanel.CurrentTab).Subscribe(_ => this.OnCurrentTabChange(this.SidePanel)));