using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
namespace OpcServerTest
{
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IChatCallbackTest))]
public interface IPLCServiceTest
{
///
/// 注册双通道
///
///
[OperationContract(IsInitiating = true, IsTerminating = false)]
int Register(string machineNo);
///
/// 注销双通道
///
///
[OperationContract(IsInitiating = false, IsTerminating = true)]
int Logout(string machineNo);
///
///向设备发送可以进行操作的指令
///
[OperationContract]
void SendOperateOrder(string config);
}
public interface IChatCallbackTest
{
[OperationContract(IsOneWay = true)]
void ReturnProductCode(string name);
}
public class ChatEventArgsTest : EventArgs
{
//public MessageType msgType;
public string name;
public string message;
}
}