随笔分类 -  Web API

摘要:原文地址: http://www.asp.net/web-api/overview/security/authentication-and-authorization-in-aspnet-web-api程序地址: http://www.codeproject.com/Articles/630986/Cross-Platform-Authentication-With-ASP-NET-Web-API 阅读全文
posted @ 2014-03-28 02:24 LeimOO 阅读(402) 评论(0) 推荐(0)
摘要:原文地址: http://msdn.microsoft.com/en-us/magazine/dn201748.aspxCustom HttpModule code:using System;using System.Collections.Generic;using System.Linq;using System.Net.Http.Headers;using System.Security.Principal;using System.Text;using System.Threading;using System.Web;namespace Test.MVC{ public cla... 阅读全文
posted @ 2014-03-27 07:59 LeimOO 阅读(600) 评论(0) 推荐(0)
摘要:原文地址: http://www.asp.net/web-api/overview/web-api-clients/httpclient-message-handlersusing System;using System.Collections.Generic;using System.Linq;using System.Net.Http;using System.Text;using System.Threading.Tasks;namespace Test.WebAPI.Client{ public class CustomClientMessageHandler : Delegat... 阅读全文
posted @ 2014-03-27 02:24 LeimOO 阅读(942) 评论(0) 推荐(0)
摘要:原文地址: http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client翻译地址:http://www.cnblogs.com/r01cn/archive/2012/11/20/2779011.htmlServer Code:1. 用EF创建Code First的Project;2. 用VS创建Web API code;Client Code:using System;using System.Collections.Generic;using System.Linq;using 阅读全文
posted @ 2014-03-27 01:26 LeimOO 阅读(660) 评论(0) 推荐(0)