摘要:
Example 8-1. Manual synchronization using fragmented lockingusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;using System.Transactions;namespace WCFServiceProgramming.Library{ [ServiceContract(SessionMode = SessionMode.Required)] publi... 阅读全文
摘要:
Example 9-1. Implementing and consuming a queued serviceusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;namespace WCFServiceProgramming.Library{ [ServiceContract] public interface IMyContract { [OperationContract(IsOneWay = ... 阅读全文
摘要:
Example 10-1. Programmatically securing the basic bindingBasicHttpBinding binding1 = new BasicHttpBinding(BasicHttpSecurityMode.Message);BasicHttpBinding binding2 = new BasicHttpBinding( );binding2.Security.Mode = BasicHttpSecurityMode.Message;Example 10-2. Administratively securing the basic bindin 阅读全文
摘要:
RUP: Rational Unified Process(Rational统一过程)软件过程模式中四大要素:生命周期,人员,方法和产品生命周期:业务建模-->需求-->分析设计-->实施-->测试-->部署配置和变更管理,项目管理,环境 先启-->精华-->构建-->产品化 人员:分析员,开发人员,测试员,经理,其他角色 (图形设计员,系统管理员,技术文档编写员,工具专家)方法:用例及用例驱动 以架构为中心 在面向对象的分析设计中采用UML进行可视化建模 面向对象的设计与构件实现 产品:工件:中间或最终产物 阅读全文
摘要:
<wsdl:operationname="AddWithThreeOperands">[OperationContract(Name="AddWithTwoOperands")] doubleAdd(doublex,doubley);classMyCalculatorClient:ClientBase<IMyCalculator>,IMyCalculator { publicdoubleAdd(doublex,doubley) { returnthis.Channel.Add(x,y); } }关键是ClientBase以及重写的 阅读全文
摘要:
Server端: Uri-->binding.BuildChannelListener<IReplyChannel(Uri)-->ChannelListener<IReplyChannel>.AcceptChannel()-->channel.ReceiveRequest(TimeSpan)-->RequestContext.Reply(Message).Client端: EndpointAddress-->binding.BuildChannelFactory<IRequestChannel>-->channelFactory 阅读全文