开发者

Using SimpleSession Storage in a WPF/Winform/WindowsService Client project

There is a requirement for a WPF client and Windows Service for an existing S#arp Architecture project and I was wondering what ISessionStorage to use? I have used SimpleSessionStorage in some of my integration tests already and the Northwind sample test project also use the same in MappingIntegrationTests. I have also heard that the Contrib project is going to have support for Winforms and WindowsService but I haven't found any ISessionStorage implementation in that specific to Wi开发者_运维技巧nforms/WPF/WindowService. So I am assuming SimpleSessionStorage should work for both WPF/Winform and Windows Service?

Same question on Google groups


Nabeel, If you are going to use the UnitOfWork or Transaction attribute from the S#arpArchitecture.Contrib project, then you would need to use the ThreadSessionStorage that is in the contrib. If not, then you would use the SimpleSessionStorage

Alec

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜