摘要:
声明服务接口 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.ServiceModel; 6 7 namespace Microsoft.ServiceModel.Samples 8 { 9 [ServiceContract]10 interface ICalculator11 {12 [OperationContract]13 double Add(double n1, double n2);14 [OperationCon 阅读全文
随笔档案-2011年08月
自托管WCF服务
2011-08-01 13:36 by 雪中风筝, 292 阅读, 收藏,
摘要:
声明WCF服务并且声明客户端提供的操作 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.ServiceModel; 6 using System.ServiceModel.Description; 7 8 namespace SelfHost 9 {10 [ServiceContract]11 interface IHelloWorld12 {13 [OperationContract]14 string SayHello(s 阅读全文