Code Monkey home page Code Monkey logo

dd4t.di.simpleinjector's Introduction

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();

dd4t.di.simpleinjector's People

Contributors

quirijnslings avatar ehenderiks avatar

Watchers

James Cloos avatar Bart Koopman avatar  avatar Siawash Shibani avatar  avatar Rick Pannekoek avatar  avatar Rogier Oudshoorn avatar

Forkers

isabella232

dd4t.di.simpleinjector's Issues

IIS is locking the provider DLL

The DI Bootstrap needs to load the provider DLL in the bin folder to make sure IIS copies it to the Temporary ASP.NET folder. As a result, IIS locks the provider DLL.
This issue appears in all DI projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.