【開源項目】Cuyahoga簡評

來源:互聯網
上載者:User

涉及到的知識點

1、nhibernate

  使用nbibernate作為持久層架構。 

    使用 castle/NHibernate Facility管理會話。

2、Castle/Windsor

  client端只依賴於介面,具體實作類別的對象建立轉移到運行時進行,相應的依賴關係轉移到設定檔。

3、ASP.net  httpHandlers,httpModules

    在httpModules中進行許可權驗證,將許可權控制和業務處理模組進行解耦。

    在httpHandlers中實現url重寫和httprequest日誌記錄。

補充

1、 完整的http請求在asp.net framework中的處理流程:
HttpRequest-->inetinfo.exe->ASPNET_ISAPI.DLL-->Http Pipeline-->ASPNET_WP.EXE-->HttpRuntime-->HttpApplication Factory-->HttpApplication-->HttpModule-->HttpHandler Factory-->HttpHandler-->HttpHandler.ProcessRequest()
2、常見的注入方式:構造子注入(Constructor Injection)、設值方法注入(Setter Injection)和介面注入(Interface Injection) 
3、NHibernate Facility
    可以通過得到ISessionFactory和組件的配置,按照你期望的方式使用。
    可以使用isessionmanager組件管理會話(Session)。

對於他外掛程式式架構的實現,目前還沒有深究,以後慢慢瞭解吧。

 

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.