add handler to authentication check
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user