~ruther/NosSmooth.Local

bc07ee96c7a5886761d7b0ed796a92ec9214711b — Rutherther 2 years ago 3fef055
fix(binding): fix periodic hook wrapper function to return empty
1 files changed, 2 insertions(+), 2 deletions(-)

M src/Core/NosSmooth.LocalBinding/Hooks/Implementations/PeriodicHook.cs
M src/Core/NosSmooth.LocalBinding/Hooks/Implementations/PeriodicHook.cs => src/Core/NosSmooth.LocalBinding/Hooks/Implementations/PeriodicHook.cs +2 -2
@@ 41,7 41,7 @@ internal class PeriodicHook : IPeriodicHook
    private NosAsmHook<IPeriodicHook.PeriodicDelegate> _hook = null!;

    /// <inheritdoc/>
    public bool IsUsable => WrapperFunction.IsPresent;
    public bool IsUsable => true;

    /// <inheritdoc />
    public string Name => IHookManager.PeriodicName;


@@ 50,7 50,7 @@ internal class PeriodicHook : IPeriodicHook
    public bool IsEnabled => _hook.Hook.IsEnabled;

    /// <inheritdoc />
    public Optional<IPeriodicHook.PeriodicDelegate> WrapperFunction => OriginalFunction;
    public Optional<IPeriodicHook.PeriodicDelegate> WrapperFunction => Optional<IPeriodicHook.PeriodicDelegate>.Empty;

    /// <inheritdoc/>
    public IPeriodicHook.PeriodicDelegate OriginalFunction => throw new InvalidOperationException

Do not follow this link