摘要: 说到.net平台下的SOA架构就不得不说一些关于remoting的东西。remoting顾名思义,远程ing .说白了就是能让你跟远程的某一台主机上已经开启了的某一个指定端口的阻塞式程序进行通信,通俗的说就是。把原本在本机处理的东西交到别的机子上给你处理,你只需要传递某一些元数据或者一些参数就可以了。这样就提高了运算能力。你可以连续传递N个参数到N台早就配好了的机子。然后返回你想要的数据再来本机进行简单的处理,这样。所谓的云计算,就出来了。remoting其实只是给你了一座桥梁,桥梁两侧的城市你可以任意的建筑。但是这两个城市都必须要遵循运用此桥梁进行通讯。而此桥梁也就是之前定义好了某一个类。. 阅读全文
posted @ 2013-08-13 21:53 Nikain 阅读(142) 评论(0) 推荐(0) 编辑
摘要: publicclassMyActionResult:ActionResult{publicoverridevoidExecuteResult(ControllerContextcontext){context.HttpContext.Response.Write("ItisMyActionResult");}}publicclassHomeController:Controller{////GET:/Home/publicActionResultIndex(stringdata){returnnewMyActionResult();}}as you can see 阅读全文
posted @ 2013-06-20 00:21 Nikain 阅读(203) 评论(0) 推荐(0) 编辑
摘要: publicclassMyActionNameSelectorAttribute:ActionNameSelectorAttribute{publicoverrideboolIsValidName(ControllerContextcontrollerContext,stringactionName,MethodInfomethodInfo){if(actionName!="Index"){controllerContext.HttpContext.Response.Redirect("Index");returnfalse;}returntrue;}} 阅读全文
posted @ 2013-06-20 00:11 Nikain 阅读(432) 评论(0) 推荐(0) 编辑
摘要: publicclassHomeController:Controller{////GET:/Home/[ActionNameAttribute("RightNotIndex")]publicstringIndex(){return"Bingo!";}}so as you can see and 阅读全文
posted @ 2013-06-19 23:55 Nikain 阅读(421) 评论(0) 推荐(0) 编辑
摘要: publicclassMyActionMethodSelectorAttribute:ActionMethodSelectorAttribute{publicoverrideboolIsValidForRequest(ControllerContextcontrollerContext,MethodInfomethodInfo){if((controllerContext.HttpContext.Request["data"])=="no")returnfalse;returntrue;}}publicclassHomeController:Contro 阅读全文
posted @ 2013-06-19 23:40 Nikain 阅读(424) 评论(0) 推荐(0) 编辑
摘要: publicclassMyActionFilterAttribute:ActionFilterAttribute{publicoverridevoidOnActionExecuted(ActionExecutedContextfilterContext){filterContext.HttpContext.Response.Write("OnActionExecutedisExecuted!<br/>");}publicoverridevoidOnActionExecuting(ActionExecutingContextfilterContext){filte 阅读全文
posted @ 2013-06-19 23:19 Nikain 阅读(622) 评论(1) 推荐(0) 编辑
摘要: From this day forward, I'll pick mythinkup, in my loveless english,I plan to summary something about ASP.NET MVC 4 and some experience involve just my personal experience , in particular about the namespace belong ASP.NET MVC ,the core system.web.mvc and system.web.ajax ,system.web.mvc.Async,las 阅读全文
posted @ 2013-06-19 21:29 Nikain 阅读(314) 评论(0) 推荐(0) 编辑