Can not find StructureMapConfiguration object
Posted
by Am
on Stack Overflow
See other posts from Stack Overflow
or by Am
Published on 2010-04-07T17:17:48Z
Indexed on
2010/04/07
17:23 UTC
Read the original article
Hit count: 271
I see a lot of exampls of how to use StructureMap in a asp.net project like this:
StructureMapConfiguration.ForRequestedType<IResourceA>()
.TheDefaultIsConcreteType<ResourceB>()
.CacheBy(InstanceScope.Singleton);
Yet, in my Global.asax I can not access the StructureMapConfiguration
object even when I import the StructureMap
namespace. What is the deal here? Am I missing something?
© Stack Overflow or respective owner