ICommunication.cs
745 Bytes
using HHECS.BllModel;
namespace HHECS.DAQClient.Communications
{
public interface ICommunication
{
int CommunicationId { get; set; }
/// <summary>
/// IP 地址
/// </summary>
string IpAddress { get; }
/// <summary>
/// 连接服务
/// </summary>
/// <returns></returns>
BllResult ConnectServer();
/// <summary>
/// 断开连接
/// </summary>
/// <returns></returns>
BllResult ConnectClose();
BllResult Read(IEnumerable<DataItem> dataItems);
BllResult Read(DataItem dataItem);
BllResult Write(IEnumerable<DataItem> dataItems);
BllResult Write(DataItem dataItem);
}
}