passthrow HttpListenerContext

This commit is contained in:
2025-05-14 15:02:52 +02:00
parent 07f4dd2dca
commit c46b968562
2 changed files with 11 additions and 10 deletions

View File

@@ -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()