get

inline fun <T : Any> CurrentSession.get(): T?
fun <T : Any> CurrentSession.get(klass: KClass<T>): T?

Gets a session instance with the type T.

Throws

if no session provider is registered for the type T