Permalink
Browse files

Merge pull request #23 from liddellj/master

Fixed issue with StructureMapDependencyResolver to allow it to work out with ASP.NET.
  • Loading branch information...
2 parents d3fe36b + 1d9f834 commit 7a9ca689227cd1f482d2c748f504fd4fd74b6d4c @serialseb serialseb committed Sep 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}
}

0 comments on commit 7a9ca68

Please sign in to comment.