AddDbContext method for DI

What is this used for and why is it internal?