Skip to content

Commit

Permalink
Fix: can't start BlazorServer due DI failed to resolve ConfigAddonRea…
Browse files Browse the repository at this point in the history
…der due AutoResetEvent replaced with ManualResetEventSlim
  • Loading branch information
Xian55 committed Sep 18, 2024
1 parent 8b48ab5 commit d97e255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Addon/ConfigAddonReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d97e255

Please sign in to comment.