Fixed issue with StructureMapDependencyResolver to allow it to work out with ASP.NET. #23

Merged
merged 1 commit into from Sep 12, 2011
View
4 src/structuremap/OpenRasta.DI.StructureMap/StructureMapDependencyResolver.cs
@@ -29,13 +29,13 @@ private static InstanceScope GetLifecycle(DependencyLifetime lifetime)
switch (lifetime)
{
case DependencyLifetime.PerRequest:
- return InstanceScope.HttpContext;
+ return InstanceScope.Hybrid;
case DependencyLifetime.Singleton:
return InstanceScope.Singleton;
case DependencyLifetime.Transient:
return InstanceScope.Transient;
default:
- return InstanceScope.HttpContext;
+ return InstanceScope.Hybrid;
}
}