Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replaced instances of InstanceScope.HttpContext with InstanceScope.Hy…

…brid to allow StructureMapDependencyResolver to be used out with ASP.NET.
  • Loading branch information...
commit 1d9f834ca797f835e8ff96864966c425eafbae98 1 parent ee4e5ec
@liddellj liddellj authored
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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.