
C#
文章平均质量分 86
besley
十年以上企业信息系统架构设计 SaaS软件架构设计和云计算平台研发团队管理经验 提供信息系统 WEB技术 工作流系统 研发团队管理和项目管理等咨询服务
展开
-
c# 代码提交数据
Posted by Ian Suttle on 五月 3, 2008 Filed under .Net Framework 原文地址:http://www.iansuttle.com/blog/post/Posting-data-with-C.aspxI don't know why but I've had some trouble executing a POS转载 2012-08-11 14:34:31 · 684 阅读 · 0 评论 -
SignalR 实时通知消息并行推送和批量存储实现
前言:SiganlR是基于.NET平台的实时消息通讯框架,有人称之为.NET平台的.NodeJS;可用于Web页面聊天,消息推送等功能实现。本文摘取部分代码,利用.NET平台的Parallel功能实现通知消息的并行推送和存储。1. 接收通知消息的Api接口:MVC 控制器代码:[HttpPost][AllowAnonymous]public void Notify(Mess原创 2013-07-15 11:11:30 · 4981 阅读 · 7 评论 -
X509数字证书之二:摘要和签名
摘要:发送方可以用X509数字证书对要发送文件的报文摘要进行签名,接收方再用X509数字证书验证发送方发出的文件是否被其他人篡改。实际场景描述如下:Bob有一份重要的商务文件要送给Alice和Jack;Alice和Jack在收到Bob的商务文件后,需要确认此商务文件的真实性,即要验证文件来源自Bob,而且要验证文件内容没有被篡改过。双方对文件校验的流程简单描述如下:1. Bob 生成X原创 2012-08-29 10:15:58 · 6763 阅读 · 0 评论 -
.NET Func and Action Delegates
.NET Func and Action Delegatesby Richard Carr, published at http://www.blackwasp.co.uk/FuncAction.aspxThe Func and Action generic delegates were introduced in the .NET framework version 3.5. They转载 2012-11-02 11:38:12 · 799 阅读 · 0 评论 -
Implementing 5 important principles of REST using WCF Services
Implementing 5 important principles of REST using WCF Serviceshttp://www.codeproject.com/Articles/283550/Implementing-5-important-principles-of-REST-usingBy Shivprasad koirala, 15转载 2012-10-30 18:53:01 · 585 阅读 · 0 评论 -
Modern Cross Platform Development
Modern Cross Platform DevelopmentWhy isn't there a modern technology available for using the same codebase to produce native apps on all of the currently popular platforms - I'm talking iOS转载 2012-10-22 08:56:09 · 2026 阅读 · 0 评论 -
Consuming .Net WCF Rest in different ways
.Net friendlySATURDAY, SEPTEMBER 4, 2010Consuming .Net WCF Rest in different waysThere are different ways to consume wcf rest services in .net, The basic idea is first creating the http request转载 2012-10-30 17:34:39 · 614 阅读 · 0 评论 -
Three ways to do WCF instance management
By Shivprasad koirala, 9 Jun 2010http://www.codeproject.com/Articles/86007/3-ways-to-do-WCF-instance-management-Per-call-Per 4.94 (62 votes)转载 2012-10-30 14:42:13 · 597 阅读 · 0 评论 -
设计模式:反向控制和依赖注入(Inversion of control and Dependency injection)
When we see around, architectures mainly discuss about loose coupling , scalability , performance etc etc. Many architecture forget one of the important aspects in software is making application globa转载 2012-10-17 09:14:17 · 920 阅读 · 0 评论 -
.NET 4.0 MEF 常见问题解答(Socket, Plug and extension)
Abstract: This FAQ deep dives in to .Net 4.0 MEF fundamentals (Import and Export) and also explains when to use MEF over DI / IOC. This article also explains step by step on how to use MEF in variou转载 2012-10-08 16:47:52 · 1710 阅读 · 0 评论 -
C#(Mono)开发手机及平板应用入门篇(含WCF服务实现)
摘要:本文是在开发Mono手机平板项目时,对安装Mono for Android工具,调用WCF服务,等一些要注意的问题进行汇总;其中包括WCF异步调用,SOAP代理类调用等。一:前提:1> MonoTouch 项目是实现c#跨平台开发iphone,ipad, android手机及平台应用利器;大家可以到官网:http://xamarin.com/monotouch 查看更多资料;2>原创 2012-09-10 11:15:02 · 5601 阅读 · 2 评论 -
X509数字证书之三:Wcf服务端和客户端证书
摘要:X509数字证书可以用于Wcf服务端和客户端通信时的身份验证;也就是不仅是服务端进行身份认证,客户端在向服务端发起请求时,也需验证客户端的身份是否合法。证书的配置通常是在服务端和客户端的web.config文件中配置。要注意Makecert.exe生成的X509证书存储的位置是在LocalMachine存储位置。在本示例中,服务端证书是WosServer, 客户端证书是WosCl原创 2012-08-31 10:44:16 · 2599 阅读 · 0 评论 -
X509数字证书之一:加密和解密
摘要:公钥在分发给接收方后,接收方需要验证公钥来源的可靠性。数字证书的目的是提供公钥和发送方数字签名,确保发送方身份可靠。数字证书是建立安全可靠的网络传输的完整解决方案,目前被广泛用于文件加密解密、电子支付等场景。CA机构,又称为证书授证(Certificate Authority)中心,作为电子商务交易中受信任的第三方,承担公钥体系中公钥的合法性检验的责任。CA中心为每个使用公开密钥原创 2012-08-17 09:34:11 · 5801 阅读 · 0 评论 -
用RSA算法生成公钥私钥对,并加密解密文件内容
摘要:RSA算法生成公钥私钥对,发送方用RSA公钥加密,接收方用RSA私钥解密。文件内容签名和验证用DSA算法,用于验证文件内容没有被修改过。发送方除了发送加密后的密文,还要发送签名信息;接收方解密密文,还要验证接收的内容是否与原始发送的内容一致,即确保没有被篡改。using System.Security.Cryptography;private static rea原创 2012-08-15 09:27:46 · 3099 阅读 · 0 评论 -
C# TraceListener 跟踪监听实用示例
Create a Logger using the Trace Listener in C#by DAVEin FILES AND DIRECTORIES, TUTORIALSWhen writing software for the commercial world it is crucial your application can log errors转载 2014-05-24 17:17:53 · 3730 阅读 · 0 评论