Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppVeyor

AppVeyor

DD4T.DI.SimpleInjector

Dependency Injection for DD4T using SimpleInjector

Release 2.5

  • Upgraded reference to DD4T.Core

How to

  1. Install Nuget package: Install-Package DD4T.DI.SimpleInjector http://www.nuget.org/packages/DD4T.DI.SimpleInjector
  2. Add DD4T.DI.SimpleInjector namespace to your usings
  3. Call the UseDD4T method on your SimpleInjector SimpleInjector.Container interface. Normally, this is done in the Global.asax.
var container = new SimpleInjector.Container();
// set all your custom bindings here.
container.UseDD4T();
container.Verify();

UseDD4T will register all default classes provided by the DD4T framework.

If you need to override the default classes: (i.e. the DefaultPublicationResolver) Register your class before the method call UseDD4T

var container = new SimpleInjector.Container();
// set all your custom bindings here.
container.Register<ILogger, FileLogger>(Lifestyle.Singleton);
container.UseDD4T();
container.Verify();

About

Dependency Injection for DD4T using SimpleInjector

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages