scoped

inline fun <C : Any> DI.Builder.scoped(scope: Scope<C>): DI.BindBuilder.WithScope<C>

Used to define bindings with a scope: bind<MyType>() with scoped(myScope).singleton { /*...*/ }

Parameters

EC

The scope's environment context type.

BC

The scope's Binding context type.