From d97e2555bc921fa513d20164e52915c5efce6463 Mon Sep 17 00:00:00 2001 From: Xian55 <367101+Xian55@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:57:37 +0200 Subject: [PATCH] Fix: can't start BlazorServer due DI failed to resolve ConfigAddonReader due AutoResetEvent replaced with ManualResetEventSlim --- Core/Addon/ConfigAddonReader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Addon/ConfigAddonReader.cs b/Core/Addon/ConfigAddonReader.cs index 59b5e80a..5e8e5afd 100644 --- a/Core/Addon/ConfigAddonReader.cs +++ b/Core/Addon/ConfigAddonReader.cs @@ -6,14 +6,14 @@ namespace Core.Addon; public sealed class ConfigAddonReader : IAddonReader { private readonly IAddonDataProvider reader; - private readonly AutoResetEvent autoResetEvent; + private readonly ManualResetEventSlim autoResetEvent; public double AvgUpdateLatency => throw new NotImplementedException(); public string TargetName => throw new NotImplementedException(); public event Action? AddonDataChanged; - public ConfigAddonReader(IAddonDataProvider reader, AutoResetEvent autoResetEvent) + public ConfigAddonReader(IAddonDataProvider reader, ManualResetEventSlim autoResetEvent) { this.reader = reader; this.autoResetEvent = autoResetEvent;