- 博客(21)
- 资源 (4)
- 收藏
- 关注
转载 HttpClient 4.5
HttpClient has been around for quite some time now. It originally appeared as part of the REST Starter Kit in 2009. Since then it has gone through a huge number of changes and improvements (or over
2014-05-30 10:04:32 8358
转载 IHttpActionResult(webAPI 2.0) instead of HttpResponseMessage(webAPI 1.0)
Hi all, I hope everyone is fine, me too. I am being amazed day by day by seeing new features and improvements to MVC from Microsoft. If you have had hands-on experience with MVC and the Web API then y
2014-05-29 16:46:18 4369
原创 .net Web API 2,return HttpResponseMessage with ObjectContent Json Type
public async Task Register(AllenRegistration model) return new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent(new {
2014-05-20 17:38:23 1569
原创 Get Bearer Token when login in
[HttpPost] [AllowAnonymous] [Route("api/account/login")] public HttpResponseMessage Login(LoginBindingModel login) { // todo: add auth if (login.UserName == "a@a.com" &
2014-05-19 12:56:53 4607
转载 Code-First Migration and Extending Identity Accounts in ASP.NET MVC 5 and Visual Studio 2013
http://www.codeproject.com/Articles/674760/Code-First-Migration-and-Extending-Identity-Accoun
2014-05-15 16:39:24 2237
转载 扩展MVC5 Identity的Roles
ASP.NET MVC 5 Identity: Extending and Modifying RolesBy John Atten, 24 Feb 2014 4.95 (19 votes) Rate this:
2014-05-15 16:11:18 13359
转载 .net webSocket例子
http://www.codeproject.com/Articles/618032/Using-WebSocket-in-NET-4-5-Part-2
2014-05-13 16:52:13 1585
原创 .net 正则表达式应用
public class AustraliaMobileFixing { private readonly string FullMobileFormat = @"/^04\d{8}$/"; private readonly string MobileFormat = @"/^\d{8}$/"; public st
2014-05-13 09:46:19 633
原创 HttpClient RestFul InterFace
namespace Collinson.Http.Security{ public interface IJsonClientService { T Get(string uri); T Get(string uri, object data); T Post(string uri); T Post(s
2014-05-12 16:37:49 2065
转载 HttpModule
HttpHandler—— 一点一点学ASP.NET文野:2006年8月9日星期三上一篇:一点一点学ASP.NET之基础概念——HttpModule 概述HttpHandler是一个HTTP请求的真正处理中心,也正是在这个HttpHandler容器中,ASP.NET Framework才真正地对客户端请求的服务器页面做出编译和执行,并将处理过后的信息附加在HTTP请求信
2014-05-11 14:54:50 504
转载 HttpModule
最近学习WCF知识时看到有关IIS版本的知识,发现对HttpContext,HttpModule,HttpHandler的内容都不是很了解,这三个也是ASP.NET相对基础的内容,晚上特地花点时间针对HttpModule的内容进行补充,文中的理论知识都是从网上多方面整理,最后的实例是本人所写的两个小实例,主要是针对HttpModule的运用;一:关于HttpModule理论知识1:
2014-05-11 14:45:34 955
原创 unit Test HttpContext.单元测试,模拟HttpContext
HttpContextBase 类为抽象类,该类包含的成员与 HttpContext 类相同。 使用 HttpContextBase 类可以创建一些派生类,这些派生类与HttpContext 类相似,但是可以进行自定义并在 ASP.NET 管道外部使用。 在执行单元测试时,通常使用派生类实现具有自定义行为的成员以实现正在测试的方案,这更容易进行单元测试。HttpContextWrapper类是
2014-05-09 14:20:57 1515
转载 nopCommerce/.net 中的缓存技术
序言在很多访问量较大的系统中,尤其在某一项数据访问频次较高时,我们会考虑使用缓存,减少系统和数据库的交互,以达到良好的用户体验。缓存主要有页面缓存和数据缓存。数据缓存的实现有很多方式,有基于memcached的,还有基于.net 4.0数据缓存框架,还有一些其他的实现方式。院子里有 PetterLiumemcached快递上手之C#,有兴趣的可以查看,本文主要讨论的是基于.net 4.
2014-05-09 13:57:27 2241
转载 Nop Commerce 源代码
http://www.51aspx.com/CodeFile/NopCommerce23/Libraries/Nop.Core/Caching/PerRequestCacheManager.cs.html
2014-05-09 11:20:12 778
转载 深入分析ASP.NET Mvc 1.0 – 1. 深入MvcHandler
http://www.shangxueba.com/jingyan/103658.html
2014-05-07 11:13:18 456
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人