Mineplex2018-withcommit/Website/LOC.Core/DependencyResolution/IoC.cs
Jonathan Williams 3fb52c5c71 Initial Commit
2013-08-27 08:14:08 -07:00

21 lines
733 B
C#

namespace LOC.Core.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;
}
}
}