mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
33 lines
821 B
C#
33 lines
821 B
C#
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
|
|
{
|
|
public string ThemeValue = string.Empty;
|
|
public bool IsReturnValue = true;
|
|
//public Type DataType;
|
|
}
|
|
|
|
public class SocketHandleModel
|
|
{
|
|
public string ThemeValue { get; set; } = string.Empty;
|
|
public bool IsReturnValue { get; set; } = true;
|
|
}
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public sealed class AutoSocketModuleAttribute : Attribute
|
|
{
|
|
public string JsonDataField;
|
|
public string JsonThemeField;
|
|
}
|
|
|
|
}
|