Domanda

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

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top