摘要: 项目结构:Rhythmk.Contracts //契约Rhythmk.Services //服务Rhythmk.WCFSvc // 服务寄宿Rhythmk.test //测试-----------------------------------------------------------------说明:通过Session 去保证对象的一致性,通过绑定 binding="wsHttpBinding" 实现会话状态1.Rhythmk.Contracts //契约using System.ServiceModel; /// SessionMode - 获取或设置是否允许、不 阅读全文
posted @ 2011-05-30 13:22 Rhythmk 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 2.WCF 同步 异步using System.ServiceModel;namespace Rhythmk.Contracts{ [ServiceContract(Namespace="http://wwww.wangkun.com")] public interface ICalculate { //通过 IsOneWay 实现无返回 异步调用 [OperationContract( IsOneWay=true)] void IsOneWay(); [OperationContract] void IsReturnWay(); }}------------------- 阅读全文
posted @ 2011-05-30 13:11 Rhythmk 阅读(538) 评论(0) 推荐(0) 编辑
Rhythmk 个人笔记