2using Newtonsoft.Json.Serialization;
72 ContractResolver =
new DefaultContractResolver
74 NamingStrategy =
new CamelCaseNamingStrategy(),
81 DefaultValueHandling = DefaultValueHandling.Ignore,
82 ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
JsonConverter for decoding bools returned by BYOND.
Constants used by the swarm system.
const int ControllerHealthCheckIntervalMinutes
Interval at which the swarm controller makes health checks on nodes.
static JsonSerializerSettings SerializerSettings
See JsonSerializerSettings for the swarm system.
const string ApiKeyHeader
The header used to pass in the Configuration.SwarmConfiguration.PrivateKey.
const string UpdateRoute
The route used for swarm updates.
const string ControllerRoute
The base route for Controllers.SwarmController.
const string RegisterRoute
The route used for swarm registration.
static SwarmConstants()
Initializes static members of the SwarmConstants class.
const int NodeHealthCheckIntervalMinutes
Interval at which the node makes health checks on the controller if it has not received one.
const string RegistrationIdHeader
The header used to pass in swarm registration IDs.
const int UpdateCommitTimeoutMinutes
Number of minutes the controller waits to receive a ready-commit from all nodes before aborting an up...
const int SecondsToDelayForcedHealthChecks
Number of seconds between a health check global::System.Threading.Tasks.TaskCompletionSource triggeri...
JsonConverter and IYamlTypeConverter for serializing global::System.Versions in semver format.