Giter Site home page Giter Site logo

di.hook's Introduction

dI.Hook - Light-weight IoC and DI engine using AOP

Build status

dI.Hook (pronounced as, du' hʊk) is a light-weight IoC and DI engine to define hooks via code or configuration, call them dynamically or conditionally and dispose them when not required. However, this is not yet another dependency injection framework. It does a lot more than just DI -

  • dI.Hook creates a controlled repository of hooks instead of searching & instantiating a hook at a time when required

  • dI.Hook allows lazy-loading the hook objects at run-time, thereby optimizing the memory allocation and performance

  • dI.Hook allows addition of hooks by both hook-type and live hook instance thereby

    • allowing sharing of hook instances between multiple repositories and/or
    • adding multiple hooks of same type with different attributes in a single repository
  • dI.Hook allows creating a hierarchy of hooks

  • dI.Hook promotes both repository based hooks and method based hooks

    • Hooks can now be stored in a repository or
    • The repository can be designed light-weight and methods could be decorated by Hook Attributes
  • Hooks can be invoked conditionally using C# Funcs, delegates and Actions

  • Hooks can be invoked sequentially (as blocking calls) or parallel (in separate threads)

It is called dI.Hook as it uses dependency injection to allow you to create run-time dependencies or hooks.

Simple to learn, well documented, and extremely light-weight.

Using in your application

You can reference dI.Hook using Nuget Download instructions from Nuget.org

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.