begin developing a basic message based web api
This commit is contained in:
8
Pilz.Networking/Api/MessageHandlerAttribute.cs
Normal file
8
Pilz.Networking/Api/MessageHandlerAttribute.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Pilz.Networking.Api;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class MessageHandlerAttribute(string url) : Attribute
|
||||
{
|
||||
public string Url { get; set; } = url;
|
||||
public Type? Serializer { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user