final update
This commit is contained in:
19
Website/Nautilus.Web.Impulse/DependencyResolution/IoC.cs
Normal file
19
Website/Nautilus.Web.Impulse/DependencyResolution/IoC.cs
Normal file
@ -0,0 +1,19 @@
|
||||
namespace LOC.Website.Web.DependencyResolution
|
||||
{
|
||||
using StructureMap;
|
||||
|
||||
public static class IoC {
|
||||
public static IContainer Initialize()
|
||||
{
|
||||
ObjectFactory.Initialize(
|
||||
x => x.Scan(
|
||||
scan =>
|
||||
{
|
||||
scan.TheCallingAssembly();
|
||||
scan.AssembliesFromApplicationBaseDirectory();
|
||||
scan.WithDefaultConventions();
|
||||
}));
|
||||
return ObjectFactory.Container;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user