ASP
public interface IControllerFactory
{
IController CreateController(RequestContext requestContext
string controllerName)
SessionStateBehavior GetControllerSessionBehavior(
RequestContext requestContext
void ReleaseController(IController controller)
}
public enum SessionStateBehavior
{
Default
Required
ReadOnly
Disabled
}
除了負責創建Controller處理請求之外
Default:使用默認 ASP
Required:為請求啟用完全的讀寫會話狀態行為
ReadOnly:為請求啟用只讀會話狀態
Disabled:禁用會話狀態
[
From:http://tw.wingwit.com/Article/program/net/201311/16095.html