add handler to authentication check

This commit is contained in:
Pilzinsel64
2024-10-28 09:20:50 +01:00
parent 24482ccb85
commit 11c0711726
2 changed files with 6 additions and 4 deletions

View File

@@ -1,9 +1,11 @@
namespace Pilz.Net.Api;
public class ApiAuthCheckEventArgs(string authKey) : EventArgs
public class ApiAuthCheckEventArgs(string authKey, Delegate? handler) : EventArgs
{
private bool hasDenyed;
public Delegate? Handler { get; }
public string AuthKey { get; } = authKey;
public bool Valid { get; set; }