#### [Abblix\.Oidc\.Server](https://www.abblix.com/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Common\.Configuration](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration 'Abblix\.Oidc\.Server\.Common\.Configuration')

## RecordLifetimeOptionsValidator Class

Fails at startup on a duration that would keep nothing: a record gone before anything could read it, or a write
the storage refuses outright\. That includes a time to keep the record of a session's clients too short for the
record to be renewed, and a client assertion lifetime that would let no assertion through\.

```csharp
public sealed class RecordLifetimeOptionsValidator : Microsoft.Extensions.Options.IValidateOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions>
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → RecordLifetimeOptionsValidator

Implements [Microsoft\.Extensions\.Options\.IValidateOptions&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ivalidateoptions-1 'Microsoft\.Extensions\.Options\.IValidateOptions\`1')[OidcOptions](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ivalidateoptions-1 'Microsoft\.Extensions\.Options\.IValidateOptions\`1')

### Remarks
At zero or below a record would be gone before anything could read it\. For the session's clients that means a
logout notifying nobody; for a logout confirmation it means the storage refusing the write outright, so every
logout question would fault\. A retention merely shorter than the host's sessions cannot be detected here,
because the session lifetime is the host's cookie setting\.

The session's clients are refused anything under [Abblix\.Oidc\.Server\.Common\.Configuration\.RecordLifetimeOptionsValidator\.MinSessionClientsRetention](https://learn.microsoft.com/en-us/dotnet/api/abblix.oidc.server.common.configuration.recordlifetimeoptionsvalidator.minsessionclientsretention 'Abblix\.Oidc\.Server\.Common\.Configuration\.RecordLifetimeOptionsValidator\.MinSessionClientsRetention') as well. A renewal of
their record notes itself until a retention after the moment it started, so a retention shorter than the
renewal itself would hand the storage an expiry already past, which a store such as Redis refuses, and the
authorization making the renewal would fail.
