set

inline fun <T : Any> CurrentSession.set(value: T?)
fun <T : Any> CurrentSession.set(value: T?, klass: KClass<T>)

Sets a session instance with the type T.

Report a problem

Throws

if no session provider is registered for the type T