with

abstract infix fun <C : Any, A> with(binding: DIBinding<in C, in A, out T>)

Binds the previously given type and tag to the given binding.

Parameters

binding

The binding to bind.

Throws

If this bindings overrides an existing binding and is not allowed to.