天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using QM.Exchange.Interface;
namespace QM.Exchange.Core
{
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IDuplexMessageService”。
[ServiceContract(Namespace = "http://www.artech.com/", CallbackContract = typeof(ICallBackService))]
public interface IDuplexMessageService
{
/// <summary>
/// 向服务端请求
/// </summary>
/// <param name="message"></param>
[OperationContract(IsOneWay = true)]
void RequestServer(CommonMessage message);
}
/// <summary>
/// 通讯回调接口
/// </summary>
public interface ICallBackService
{
/// <summary>
/// 服务端向客户端发送信息(异步)
/// </summary>
/// <param name="Message"></param>
[OperationContract(IsOneWay = true)]
void SendMessageToClient(CommonMessage message);
}
}