Factory for scoping usage of IDatabaseContexts. Meant for use by Components
async Task UseContext(Func< IDatabaseContext, Task > operation)
Run an operation in the scope of an IDatabaseContext
readonly IServiceScopeFactory scopeFactory
The IServiceScopeFactory for the DatabaseContextFactory
DatabaseContextFactory(IServiceScopeFactory scopeFactory)
Construct a DatabaseContextFactory