22 lines
651 B
C#
22 lines
651 B
C#
using AyCode.Core.Serializers;
|
|
using AyCode.Core.Serializers.Attributes;
|
|
|
|
namespace AyCode.Services.SignalRs;
|
|
|
|
/// <summary>
|
|
/// Base interface for SignalR message parameters (metadata).
|
|
/// </summary>
|
|
public interface ISignalParams { }
|
|
|
|
/// <summary>
|
|
/// Parameters received alongside message data.
|
|
/// Travels as a separate SignalR hub argument (small, AcBinary serialized)
|
|
/// while the payload byte[] uses the protocol's zero-copy fast-path.
|
|
/// </summary>
|
|
[AcBinarySerializable]
|
|
public class SignalReceiveParams : ISignalParams
|
|
{
|
|
public SignalResponseStatus Status { get; set; }
|
|
public AcSerializerType DataSerializerType { get; set; }
|
|
}
|