normalian blog

Let's talk about Microsoft Azure, ASP.NET and Java!

Entries from 2009-05-11 to 1 day

オレオレ Interceptor

ActionMethodSelector.cs辺りを眺めつつ、C#のリフレクション使って細々とInterceptorもどきを書いてみた。 using System; using System.Linq; using System.Reflection; class Program { static void Main(string[] args) { ConcreteDummyAction obj = new …

Controllerについて

MVCのソースコードを眺めていたので備忘録。 「DefaultControllerFactoryTest.cs」ファイル内に以下のコードを発見。 // BAD: type isn't public internal class NonPublicController : Controller {} // BAD: type doesn't end with 'Controller' public cl…