使用C# winform编写windows服务实现自动上传客户端数据到服务端

上传者: oallmicn | 上传时间: 2021-05-24 10:24:50 | 文件大小: 1.88MB | 文件类型: RAR
数据上传,相信是很多项目中需要解决的问题;主要有手动上传、自动上传、计划上传等方式。本例由于对数据的实时性有一些要求,而且需要尽可能降低用户的操作难度,所以使用的是自动上传+计划的上传方式。本例服务器端直接用HTTP协议接收数据,客户机使用windows服务,来解决小数据量的数据上传。

文件下载

资源详情

[{"title":"( 74 个子文件 1.88MB ) 使用C# winform编写windows服务实现自动上传客户端数据到服务端","children":[{"title":"ClProjectService","children":[{"title":"ProjectInstaller.cs <span style='color:#111;'> 3.18KB </span>","children":null,"spread":false},{"title":"ClProjectService.csproj <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"UploadWeightService.cs <span style='color:#111;'> 11.57KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"app.config <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Test.cs <span style='color:#111;'> 6.32KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"UploadWeightService.Designer.cs <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"SleepTime.cs <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"ProjectInstaller.resx <span style='color:#111;'> 6.27KB </span>","children":null,"spread":false},{"title":"ProjectInstaller.Designer.cs <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"ClProjectService.ProjectInstaller.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ClProjectService.csprojResolveAssemblyReference.cache <span style='color:#111;'> 62.65KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"ClProjectService.csproj.FileListAbsolute.txt <span style='color:#111;'> 10.81KB </span>","children":null,"spread":false},{"title":"ClProjectService.pdb <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.35KB </span>","children":null,"spread":false},{"title":"ClProjectService.csproj.GenerateResource.Cache <span style='color:#111;'> 913B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 886B </span>","children":null,"spread":false},{"title":"ClProjectService.exe <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":[{"title":"ClProjectService.ProjectInstaller.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ClProjectService.csprojResolveAssemblyReference.cache <span style='color:#111;'> 69.12KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"ClProjectService.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"ClProjectService.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false},{"title":"ClProjectService.csproj.GenerateResource.Cache <span style='color:#111;'> 913B </span>","children":null,"spread":false},{"title":"ClProjectService.exe <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"OpenSmtp.dll <span style='color:#111;'> 44.00KB </span>","children":null,"spread":false},{"title":"CL.Model.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"System.Data.SQLite.dll <span style='color:#111;'> 828.00KB </span>","children":null,"spread":false},{"title":"ClProjectService.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"services","children":[{"title":"ClProjectService.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"ClProjectService.vshost.exe.config <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"ClProjectService.exe.config <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"ClProjectService.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"ClProjectService.pdb <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"ClProjectService.InstallLog <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"ClProjectService.exe <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"ClProjectService.vshost.exe.config <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"COM.Excel.dll <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false},{"title":"ClProjectService.exe.config <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Excel.dll <span style='color:#111;'> 1.04MB </span>","children":null,"spread":false},{"title":"CL.DAL.dll <span style='color:#111;'> 76.00KB </span>","children":null,"spread":false},{"title":"CL.DBUtility.pdb <span style='color:#111;'> 175.50KB </span>","children":null,"spread":false},{"title":"CL.Model.pdb <span style='color:#111;'> 85.50KB </span>","children":null,"spread":false},{"title":"CL.Common.pdb <span style='color:#111;'> 121.50KB </span>","children":null,"spread":false},{"title":"ClProjectService.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"ClProjectService.pdb <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"CL.BLL.dll <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"CL.Common.dll <span style='color:#111;'> 56.00KB </span>","children":null,"spread":false},{"title":"CL.BLL.pdb <span style='color:#111;'> 91.50KB </span>","children":null,"spread":false},{"title":"CL.DAL.pdb <span style='color:#111;'> 105.50KB </span>","children":null,"spread":false},{"title":"ClProjectService.InstallLog <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"ClProjectService.exe <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"IBatisNet.Common.dll <span style='color:#111;'> 100.00KB </span>","children":null,"spread":false},{"title":"CL.DBUtility.dll <span style='color:#111;'> 64.00KB </span>","children":null,"spread":false},{"title":"MySql.Data.dll <span style='color:#111;'> 360.50KB </span>","children":null,"spread":false},{"title":"IBatisNet.DataMapper.dll <span style='color:#111;'> 244.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":[{"title":"OpenSmtp.dll <span style='color:#111;'> 44.00KB </span>","children":null,"spread":false},{"title":"CL.Model.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"System.Data.SQLite.dll <span style='color:#111;'> 828.00KB </span>","children":null,"spread":false},{"title":"COM.Excel.dll <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false},{"title":"ClProjectService.exe.config <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Excel.dll <span style='color:#111;'> 1.04MB </span>","children":null,"spread":false},{"title":"CL.DAL.dll <span style='color:#111;'> 68.00KB </span>","children":null,"spread":false},{"title":"ClProjectService.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"CL.BLL.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"CL.Common.dll <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"ClProjectService.exe <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"IBatisNet.Common.dll <span style='color:#111;'> 100.00KB </span>","children":null,"spread":false},{"title":"CL.DBUtility.dll <span style='color:#111;'> 60.00KB </span>","children":null,"spread":false},{"title":"MySql.Data.dll <span style='color:#111;'> 360.50KB </span>","children":null,"spread":false},{"title":"IBatisNet.DataMapper.dll <span style='color:#111;'> 244.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"添加服务工具","children":[{"title":"服务管理工具.exe <span style='color:#111;'> 63.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"readme.txt <span style='color:#111;'> 40B </span>","children":null,"spread":false}],"spread":true}]

评论信息

  • thumbsup :
    参考一下。。。
    2020-10-20
  • dengzhikun2345 :
    我想找的是上传文件的,有点不同。不过上传数据没有问题
    2020-08-13
  • wuzhifu8812 :
    还没有用,先给个好评
    2018-08-28
  • ruyofu :
    额。是上传数据的。我想找上传文件的。
    2017-11-18
  • chenxc90 :
    缺损东西,还有就是刚刚接触c#,看不懂.....
    2017-03-13

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明