With

fun <C : Any, A> With(contextType: TypeToken<in C>, argType: TypeToken<in A>, createdType: TypeToken<out T>, block: (TypeToken<out T>) -> DIBinding<in C, in A, out T>)

Second part of the bind<Type>().inSet() with binding syntax.

Parameters

C

The context type of the binding.

binding

The binding to add in the set.