Interface IRedbScopeSource
A service that opens scopes of the container it came from: for code that holds one service and needs another of
the same database per unit of work - a parallel flow, a background job, an audit written outside any request.
One is one connection, so parallel work needs a service each; a service resolved from
the root provider lends its lazy loads a scope the same way (review after 4.0.0, finding 4). A service built
without a container has nothing to open a scope from ().
public interface IRedbScopeSource
Properties
CanCreateScope
Whether can open a scope: the service came from a container with a scope factory.
bool CanCreateScope { get; }
Methods
CreateScope()
Opens a scope of the service's container and returns its service of the same database; the holder owns the
RedbScope CreateScope()