Changed the way to create the dependency container on ApplicationBuilder