more work on api & rename to Pilz.Net
This commit is contained in:
22
Pilz.Net/Api/IApiServer.cs
Normal file
22
Pilz.Net/Api/IApiServer.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Pilz.Net.Api;
|
||||
|
||||
public interface IApiServer
|
||||
{
|
||||
public delegate void OnCheckAuthenticationEventHandler(object sender, ApiAuthCheckEventArgs e);
|
||||
|
||||
event OnCheckAuthenticationEventHandler? OnCheckAuthentication;
|
||||
|
||||
string ApiUrl { get; }
|
||||
|
||||
bool EnableAuth { get; set; }
|
||||
|
||||
IMessageSerializer Serializer { get; }
|
||||
|
||||
void Start();
|
||||
|
||||
void Stop();
|
||||
|
||||
void RegisterHandler<T>(T instance) where T : class;
|
||||
|
||||
void RegisterHandler(Delegate handler);
|
||||
}
|
||||
Reference in New Issue
Block a user