Dependency injection
Like many other frameworks, Revo also builds on the principles inversion of control (IoC). For the heavy lifting, the framework uses the open-source Ninject dependency container and injector.
Module auto-loading
new RevoConfiguration()
...
.OverrideModuleLoading<XyzModule>(true);
;Task and request scopes
public static class NinjectBindingExtensions
{
...
public static IBindingNamedWithOrOnSyntax<T> InRequestScope<T>(this IBindingInSyntax<T> syntax) { ... }
public static IBindingNamedWithOrOnSyntax<T> InTaskScope<T>(this IBindingInSyntax<T> syntax) { ... }
...
}InTaskScope
InRequestScope
Further notes
Last updated