05 2011 档案

摘要:项目结构: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 阅读(668) 评论(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 阅读(554) 评论(0) 推荐(0)
摘要:1.结构2.契约:using System.ServiceModel;using Rhythmk.Entity;namespace Rhythmk.Contracts{ [ServiceContract(Namespace="http://wwww.wangkun.com")] publicinterface ICalculate { [OperationContract(Name="AddServices")] double Add(double x, double y); /* Name :则体现在客户端调用此... 阅读全文
posted @ 2011-05-25 14:11 Rhythmk 阅读(449) 评论(0) 推荐(0)

Rhythmk 个人笔记