資源簡介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.ServiceModel;
using?System.ServiceModel.Channels;
using?HelloService;
namespace?HelloClicent
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????using?(HelloProxy?proxy?=?new?HelloProxy())
????????????{
????????????????//利用代理調用服務
????????????????Console.WriteLine(proxy.Say(“張三“));
????????????????Console.ReadLine();
????????????}
????????}
????}
????//硬編碼定義服務契約
????[ServiceContract]
????interface?IService
????{
????????//服務操作
????????[OperationContract]
????????string?Say(string?name);
????}
????///?
????///?客戶端代理類型
????///?
????class?HelloProxy?:?Clientbase?IService
????{
????????//硬編碼定
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5632??2015-06-21?16:46??HelloClicent\bin\Debug\HelloClicent.exe
?????文件??????15872??2015-06-21?16:46??HelloClicent\bin\Debug\HelloClicent.pdb
?????文件??????22472??2015-06-21?16:46??HelloClicent\bin\Debug\HelloClicent.vshost.exe
?????文件????????490??2010-03-17?22:39??HelloClicent\bin\Debug\HelloClicent.vshost.exe.manifest
?????文件???????4608??2015-06-21?16:05??HelloClicent\bin\Debug\HelloService.dll
?????文件??????11776??2015-06-21?16:05??HelloClicent\bin\Debug\HelloService.pdb
?????文件???????2772??2015-06-21?16:44??HelloClicent\HelloClicent.csproj
?????文件???????6580??2015-06-21?16:21??HelloClicent\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????649??2015-06-21?16:46??HelloClicent\obj\Debug\HelloClicent.csproj.FileListAbsolute.txt
?????文件???????5793??2015-06-21?16:44??HelloClicent\obj\Debug\HelloClicent.csprojResolveAssemblyReference.cache
?????文件???????5632??2015-06-21?16:46??HelloClicent\obj\Debug\HelloClicent.exe
?????文件??????15872??2015-06-21?16:46??HelloClicent\obj\Debug\HelloClicent.pdb
?????文件???????1433??2015-06-21?16:46??HelloClicent\Program.cs
?????文件???????1344??2015-06-21?16:19??HelloClicent\Properties\AssemblyInfo.cs
?????文件???????4608??2015-06-21?16:05??HelloService\bin\Debug\HelloService.dll
?????文件??????11776??2015-06-21?16:05??HelloService\bin\Debug\HelloService.pdb
?????文件????????398??2015-06-21?15:23??HelloService\HelloService.cs
?????文件???????2511??2015-06-21?16:05??HelloService\HelloService.csproj
?????文件????????496??2015-06-21?15:18??HelloService\IHelloService.cs
?????文件???????6488??2015-06-21?15:18??HelloService\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????473??2015-06-21?16:05??HelloService\obj\Debug\HelloService.csproj.FileListAbsolute.txt
?????文件???????1853??2015-06-21?16:05??HelloService\obj\Debug\HelloService.csprojResolveAssemblyReference.cache
?????文件???????4608??2015-06-21?16:05??HelloService\obj\Debug\HelloService.dll
?????文件??????11776??2015-06-21?16:05??HelloService\obj\Debug\HelloService.pdb
?????文件???????1344??2015-06-21?15:09??HelloService\Properties\AssemblyInfo.cs
?????文件???????4608??2015-06-21?16:05??HelloServiceHost\bin\Debug\HelloService.dll
?????文件??????11776??2015-06-21?16:05??HelloServiceHost\bin\Debug\HelloService.pdb
?????文件???????6144??2015-06-21?16:05??HelloServiceHost\bin\Debug\HelloServiceHost.exe
?????文件??????13824??2015-06-21?16:05??HelloServiceHost\bin\Debug\HelloServiceHost.pdb
?????文件??????22472??2015-06-21?16:46??HelloServiceHost\bin\Debug\HelloServiceHost.vshost.exe
............此處省略35個文件信息
評論
共有 條評論