摘要: 契约:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;namespace Rhythmk.Contracts{ /// <summary> /// 对象在每次调用前创建,在调用后回收 /// </summary> [ServiceContract] public interface IPerCall { [OperationContract] void Add(); [OperationContract] 阅读全文
posted @ 2011-06-01 15:59 Rhythmk 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 契约:namespace Rhythmk.Contracts{ [ServiceContract(Namespace="http://wwww.wangkun.com")] public interface ICalculate { [OperationContract] [TransactionFlow(TransactionFlowOption.Mandatory)] void OperationTransaction(int i); /* TransactionFlow - 指定服务操作是否愿意接受来自客户端的传入事务 NotAllowed - 禁止事务。默认值 Al 阅读全文
posted @ 2011-06-01 14:44 Rhythmk 阅读(451) 评论(1) 推荐(1) 编辑
Rhythmk 个人笔记