Files
TouchSocket/RRQMSocket.RPC.WebApi/Socket/WebApiSocketClient.cs
若汝棋茗 1bc8e48431 整体更新
2021-08-13 21:00:37 +08:00

30 lines
779 B
C#

using RRQMCore.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RRQMSocket.RPC.WebApi
{
/// <summary>
/// WebApiSocket辅助类
/// </summary>
public class WebApiSocketClient : SimpleSocketClient
{
/// <summary>
/// 禁用适配器赋值
/// </summary>
/// <param name="adapter"></param>
public sealed override void SetDataHandlingAdapter(DataHandlingAdapter adapter)
{
throw new RRQMException($"{nameof(WebApiSocketClient)}不允许设置适配器。");
}
internal void SetAdapter(DataHandlingAdapter adapter)
{
base.SetDataHandlingAdapter(adapter);
}
}
}