17 lines
427 B
C#
17 lines
427 B
C#
using System.Net;
|
|
|
|
namespace Pilz.Net.Api;
|
|
|
|
public class ApiAuthCheckEventArgs(string authKey, Delegate? handler, HttpListenerContext context) : EventArgs
|
|
{
|
|
public HttpListenerContext Context { get; } = context;
|
|
public Delegate? Handler { get; } = handler;
|
|
public string AuthKey { get; } = authKey;
|
|
public bool Valid { get; private set; } = true;
|
|
|
|
public void Deny()
|
|
{
|
|
Valid = false;
|
|
}
|
|
}
|