void ValidateContent()
{
var cfg = this;
if (cfg.FirstUserOid < 0 || cfg.LastUserOid < 0) {
throw new FormatException("Key range values must be positive.");
}
if (cfg.LastUserOid < cfg.FirstUserOid) {
throw new FormatException("Invalid key range: LastUserOid must be greater than FirstUserOid.");
}
if (cfg.ReconnectMaximumWaitSeconds < 0 || cfg.ReconnectMaximumWaitSeconds > int.MaxValue) {
throw new FormatException("Illegal value for ReconnectMaximumWaitSeconds.");
}
if (cfg.ReconnectMinimumWaitSeconds < 0 || cfg.ReconnectMinimumWaitSeconds > int.MaxValue) {
throw new FormatException("Illegal value for ReconnectMinimumWaitSeconds.");
}
}