摘要:
契约: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] 阅读全文
摘要:
契约:namespace Rhythmk.Contracts{ [ServiceContract(Namespace="http://wwww.wangkun.com")] public interface ICalculate { [OperationContract] [TransactionFlow(TransactionFlowOption.Mandatory)] void OperationTransaction(int i); /* TransactionFlow - 指定服务操作是否愿意接受来自客户端的传入事务 NotAllowed - 禁止事务。默认值 Al 阅读全文