Constructor DatabaseCommandTimeout
- Namespace
- MailFathom.Infrastructure.Persistence.Connections
- Assembly
- MailFathom.Infrastructure.dll
DatabaseCommandTimeout(TimeSpan)
The bound on a single database command that startup configured the EF Core context with.
public DatabaseCommandTimeout(TimeSpan Value)
Parameters
ValueTimeSpanHow long a single database command may run before it is cancelled.
Remarks
This exists as a registered value rather than as a setting to be read again for the same reason PostgresTextSearchConfiguration does: it is captured once, during composition, and a later reload cannot reach the context options it was written into. Publishing it is what lets a reloaded candidate be compared against what the process is actually using instead of against configuration that describes an intent nothing applied.