2024-10-10 10:45:53 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
using System.Net.WebSockets;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Library.Network.WebSocketCommunication
|
|
|
|
|
|
{
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
|
|
|
|
public sealed class AutoSocketHandleAttribute : Attribute
|
|
|
|
|
|
{
|
2024-10-10 16:49:37 +08:00
|
|
|
|
public string ThemeValue = string.Empty;
|
|
|
|
|
|
public bool IsReturnValue = true;
|
2024-10-10 10:45:53 +08:00
|
|
|
|
//public Type DataType;
|
|
|
|
|
|
}
|
2024-10-10 16:49:37 +08:00
|
|
|
|
|
|
|
|
|
|
public class SocketHandleModel
|
|
|
|
|
|
{
|
|
|
|
|
|
public string ThemeValue { get; set; } = string.Empty;
|
|
|
|
|
|
public bool IsReturnValue { get; set; } = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-10 10:45:53 +08:00
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
|
|
|
|
public sealed class AutoSocketModuleAttribute : Attribute
|
|
|
|
|
|
{
|
|
|
|
|
|
public string JsonDataField;
|
|
|
|
|
|
public string JsonThemeField;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|