在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#网络编程 → C#WCF应用实例源码

C#WCF应用实例源码

C#网络编程

下载此实例
  • 开发语言:C#
  • 实例大小:0.76M
  • 下载次数:30
  • 浏览次数:206
  • 发布时间:2022-08-31
  • 实例类别:C#网络编程
  • 发 布 人:liurenming
  • 文件格式:.rar
  • 所需积分:2
 相关标签: 应用基础 WCF CF 应用 基础

实例介绍


【实例简介】C#WCF应用实例源码

整合了原有的windows通讯的 .net Remoting,WebService,Socket的机制,并融合有HTTPFTP的相关技术。
是Windows平台上开发分布式应用最佳的实践方式。
简单的归结为四大部分
1.网络服务的协议,即用什么网络协议开放客户端接入。
2.业务服务的协议,即声明服务提供哪些业务。
3.数据类型声明,即对客户端与服务器端通信的数据部分进行一致化。
4.传输安全性相关的定义。
它是.NET框架的一部分,由 .NET Framework3.0 开始引入,与Windows Presentation Foundation及Windows Workflow Foundation并行为新一代 Windows操作系统以及 WinFX 的三个重大应用程序开发类库。在 .NET Framework2.0 以及前版本中,微软发展了 Web Service(SOAP with HTTP communication),.NET Remoting (TCP/HTTP/Pipeline communication) 以及基础的 Winsock 等通信支持。由于各个通信方法的设计方法不同,而且彼此之间也有相互的重叠性,对于开发人员来说,不同的选择会有不同的程序设计模型,而且必须要重新学习,让开发人员在使用中有许多不便。同时,面向服务架构(Service-Oriented Architecture) 也开始盛行于软件工业中,因此微软重新查看了这些通信方法,并设计了一个统一的程序开发模型,对于数据通信提供了最基本最有弹性的支持,这就是 Windows Communication Foundation。

【实例截图】

from clipboard

【核心代码】


.
├── C#WCF应用实例源码.rar
└── WCF
    ├── WCF.sln
    ├── output
    │   ├── wcf.dll
    │   ├── wcf.dll.config
    │   ├── wcf.pdb
    │   ├── wcfClient.exe
    │   ├── wcfClient.exe.config
    │   ├── wcfClient.pdb
    │   ├── wcfServer.exe
    │   ├── wcfServer.exe.config
    │   └── wcfServer.pdb
    ├── wcf
    │   ├── App.config
    │   ├── IService1.cs
    │   ├── Properties
    │   │   └── AssemblyInfo.cs
    │   ├── Service1.cs
    │   ├── bin
    │   │   └── Debug
    │   │       ├── wcf.dll
    │   │       ├── wcf.dll.config
    │   │       └── wcf.pdb
    │   ├── obj
    │   │   └── Debug
    │   │       ├── DesignTimeResolveAssemblyReferences.cache
    │   │       ├── DesignTimeResolveAssemblyReferencesInput.cache
    │   │       ├── TempPE
    │   │       ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
    │   │       ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
    │   │       ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
    │   │       ├── WcfConfigValidationData.tmp
    │   │       ├── wcf.csproj.CoreCompileInputs.cache
    │   │       ├── wcf.csproj.FileListAbsolute.txt
    │   │       ├── wcf.csprojAssemblyReference.cache
    │   │       ├── wcf.dll
    │   │       └── wcf.pdb
    │   ├── wcf.csproj
    │   └── wcf.csproj.user
    ├── wcfClient
    │   ├── App.config
    │   ├── Connected Services
    │   │   └── ServiceReference
    │   │       ├── Reference.cs
    │   │       ├── Reference.svcmap
    │   │       ├── configuration.svcinfo
    │   │       ├── configuration91.svcinfo
    │   │       ├── service.wsdl
    │   │       ├── service.xsd
    │   │       ├── service1.xsd
    │   │       ├── wcf.xsd
    │   │       └── wcfClient.ServiceReference.CompositeType.datasource
    │   ├── Form1.Designer.cs
    │   ├── Form1.cs
    │   ├── Form1.resx
    │   ├── Program.cs
    │   ├── Properties
    │   │   ├── AssemblyInfo.cs
    │   │   ├── Resources.Designer.cs
    │   │   ├── Resources.resx
    │   │   ├── Settings.Designer.cs
    │   │   └── Settings.settings
    │   ├── bin
    │   │   └── Debug
    │   │       ├── wcfClient.exe
    │   │       ├── wcfClient.exe.config
    │   │       └── wcfClient.pdb
    │   ├── obj
    │   │   └── Debug
    │   │       ├── DesignTimeResolveAssemblyReferences.cache
    │   │       ├── DesignTimeResolveAssemblyReferencesInput.cache
    │   │       ├── TempPE
    │   │       │   └── Connected Services.ServiceReference.Reference.cs.dll
    │   │       ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
    │   │       ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
    │   │       ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
    │   │       ├── wcfClient.Form1.resources
    │   │       ├── wcfClient.Properties.Resources.resources
    │   │       ├── wcfClient.csproj.CoreCompileInputs.cache
    │   │       ├── wcfClient.csproj.FileListAbsolute.txt
    │   │       ├── wcfClient.csproj.GenerateResource.cache
    │   │       ├── wcfClient.csprojAssemblyReference.cache
    │   │       ├── wcfClient.exe
    │   │       └── wcfClient.pdb
    │   └── wcfClient.csproj
    └── wcfServer
        ├── App.config
        ├── Form1.Designer.cs
        ├── Form1.cs
        ├── Form1.resx
        ├── Program.cs
        ├── Properties
        │   ├── AssemblyInfo.cs
        │   ├── Resources.Designer.cs
        │   ├── Resources.resx
        │   ├── Settings.Designer.cs
        │   └── Settings.settings
        ├── bin
        │   ├── Debug
        │   │   ├── wcf.dll
        │   │   ├── wcf.dll.config
        │   │   ├── wcf.pdb
        │   │   ├── wcfServer.exe
        │   │   ├── wcfServer.exe.config
        │   │   └── wcfServer.pdb
        │   └── Release
        ├── obj
        │   └── Debug
        │       ├── DesignTimeResolveAssemblyReferences.cache
        │       ├── DesignTimeResolveAssemblyReferencesInput.cache
        │       ├── TempPE
        │       │   └── Properties.Resources.Designer.cs.dll
        │       ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
        │       ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
        │       ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
        │       ├── WindowsFormsApplication1.Form1.resources
        │       ├── WindowsFormsApplication1.Properties.Resources.resources
        │       ├── WindowsFormsApplication1.csproj.CopyComplete
        │       ├── WindowsFormsApplication1.csproj.CoreCompileInputs.cache
        │       ├── WindowsFormsApplication1.csproj.FileListAbsolute.txt
        │       ├── WindowsFormsApplication1.csproj.GenerateResource.cache
        │       ├── WindowsFormsApplication1.csprojAssemblyReference.cache
        │       ├── WindowsFormsApplication1.exe
        │       ├── WindowsFormsApplication1.pdb
        │       ├── wcfServer.Form1.resources
        │       ├── wcfServer.Properties.Resources.resources
        │       ├── wcfServer.csproj.CopyComplete
        │       ├── wcfServer.csproj.CoreCompileInputs.cache
        │       ├── wcfServer.csproj.FileListAbsolute.txt
        │       ├── wcfServer.csproj.GenerateResource.cache
        │       ├── wcfServer.csprojAssemblyReference.cache
        │       ├── wcfServer.exe
        │       └── wcfServer.pdb
        └── wcfServer.csproj

26 directories, 109 files


网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警