문제

Which Structuremap v3 Lifecycle is recommended to replace the old HybridLifecycle? Specifically for a UnitOfWork in a web app environment?

도움이 되었습니까?

해결책

Add reference to StructureMap.Web Assembly.

Import these namespaces(they contain extension methods):

Imports StructureMap.Web
Imports StructureMap.Web.Pipeline

then you can use:

HybridHttpOrThreadLocalScoped
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top