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