You can also source configuration from an in memory object such as a Dictionary<string,string>
.AddInMemoryCollection(new Dictionary<string, string>
{
["akey"] = "a value"
})
This can reveal helpful in integration/unit testing scenarios.