Ninject supports registrations (or "bindings") either directly on the
IKernel instance (typically,
StandardKernel), or via Ninject Modules.
Agent Mulder plugin supports the following binding syntax:
Bind/Rebind<TInterface>().To<TType>()- binds the
TInterfaceto a concrete type
Bind/Rebind(typeof(TInterface)).To(typeof(TType))- non generic overloads, same as above
Bind/Rebind<TType>().ToSelf()- binds the concrete TType to itself.
You can also mix and match between the generic and non-generic overloads.
Open generic types are supported using the non-generic overloads:
Bind<T1...Tn>()- overloads with more than one generic parameter