2010-07-07 61 views
1

對於WPF客戶端和Windows服務,現有S#arp Architecture項目需要一個 ,我想知道使用哪種ISessionStorage ?我已經在我的一些 集成測試中使用了SimpleSessionStorage,並且Northwind樣本測試項目 在MappingIntegrationTests中也使用相同。我也聽說Contrib項目將支持Winforms和 WindowsService,但我還沒有發現特定於Winforms/WPF/WindowService的任何ISessionStorage實現 。所以我假設 SimpleSessionStorage應爲WPF/Winform和Windows 服務?在WPF/Winform/WindowsService客戶端項目中使用SimpleSession存儲

Same question on Google groups

回答

2

納比爾, 如果你要使用的UnitOfWork或交易屬性從S#arpArchitecture.Contrib項目,那麼你就需要使用ThreadSessionStorage是在contrib。如果不是,那麼你會使用SimpleSessionStorage

亞歷克