Add project files.

This commit is contained in:
2024-08-16 11:24:48 +02:00
parent 6e24754b23
commit 6e4501f373
22 changed files with 682 additions and 0 deletions
@@ -0,0 +1,13 @@
namespace AspNetCore.Extensions.Websockets;
public abstract class WebSocketConverterAttributeBase : Attribute
{
public abstract Type ConverterType { get; }
}
[AttributeUsage(AttributeTargets.Class)]
public sealed class WebSocketConverterAttribute<TConverter, TPayload> : WebSocketConverterAttributeBase
where TConverter : WebSocketMessageConverter<TPayload>, new()
{
public override sealed Type ConverterType => typeof(TConverter);
}