passthrow HttpListenerContext
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
namespace Pilz.Net.Api;
|
||||
using System.Net;
|
||||
|
||||
public class ApiAuthCheckEventArgs(string authKey, Delegate? handler) : EventArgs
|
||||
namespace Pilz.Net.Api;
|
||||
|
||||
public class ApiAuthCheckEventArgs(string authKey, Delegate? handler, HttpListenerContext context) : EventArgs
|
||||
{
|
||||
private bool hasDenyed;
|
||||
|
||||
public HttpListenerContext Context { get; } = context;
|
||||
public Delegate? Handler { get; } = handler;
|
||||
|
||||
public string AuthKey { get; } = authKey;
|
||||
|
||||
public bool Valid { get; set; }
|
||||
|
||||
public void Deny()
|
||||
|
||||
Reference in New Issue
Block a user