This project is read-only.

Notice

  • All extension methods will provide output to a SYSTEM logger.
  • All extension methods listed are public

IsRegistered

  • bool IsRegistered<T>(this IKernel)
  • bool IsRegistered(Type)(this IKernel, Type type)

Checks the IKernel for a binding matching the generic type <T> or System.Type

RegisterInstance

  • void RegisterInstance<T>(this IKernel kernel, T instance)

Registers a singleton instance in the Kernel
  • void RegisterInstance<TFrom, TTo>(this IKernel kernel, TTo instance)

Registers a singleton instance in the Kernel and binds it to TFrom type

RegisterTypeIfMissing

  • void RegisterTypeIfMissing<TType>(this IKernel kernel, bool singleton)

Binds the generic type to itself. The boolean parameter specifies whether the binding is in singleton scope or not.
  • void RegisterTypeIfMissing<TType>(this IKernel kernel, string key, bool singleton)

Binds the generic type to itself using a named binding. The boolean parameter specifies whether the binding is in singleton scope or not.
  • void RegisterTypeIfMissing(this IKernel kernel, Type type, string key, bool singleton)

Binds the type, described by System.Type to itself. The boolean parameter specifies whether the binding is in singleton scope or not.


Last edited Jan 17, 2013 at 9:11 PM by mmisztal1980, version 2

Comments

No comments yet.