03 2014 档案

摘要:原文地址: 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 阅读(408) 评论(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 阅读(604) 评论(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 阅读(947) 评论(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 阅读(667) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Test.Other{ public class TestDelegateAndEvent { public delegate void TestDelegate(); public event TestDelegate TestEventHandler; public void Test() ... 阅读全文
posted @ 2014-03-21 04:49 LeimOO 阅读(357) 评论(0) 推荐(0)
摘要:IIS Media Service 对Channel的Schema可以在浏览器中输入http://{0}:{1}/services/smoothstreaming/publishingpoints.isml/settings 看到。 Publishing Point Collection 2014-03-20T17:38:09.529Z http://{0}:{1}/services/smoothstreaming/publishingpoints.isml/settings Test 2014-03-19T19:06:55Z ... 阅读全文
posted @ 2014-03-21 01:54 LeimOO 阅读(1536) 评论(0) 推荐(0)
摘要:Service Host:using System;using System.Configuration;using System.ServiceModel;using System.ServiceModel.Activation;using System.Web.Configuration;using log4net;using System.Threading;namespace Test.Custom{ public class CustomServiceHostFactory : System.ServiceModel.Activation.WebServiceHostFacto... 阅读全文
posted @ 2014-03-21 01:30 LeimOO 阅读(773) 评论(0) 推荐(0)
摘要:Service Host:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.ServiceModel;namespace Test.WCF.ServiceBus.Host.Service{ [ServiceContract(Namespace = "urn:ps")] interface IProblemSolver { [OperationContract] ... 阅读全文
posted @ 2014-03-21 01:02 LeimOO 阅读(886) 评论(0) 推荐(0)