Dependencyinject instance of sessionManger for easier testing.