mirror of
https://github.com/AlexMacocian/Net.Sdk.Web.Extensions.git
synced 2026-07-24 03:56:27 +00:00
Add project files.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user