using System.ComponentModel.DataAnnotations; namespace FinalFactory.Rendezvous.Server.Transport; /// /// Configures the UDP endpoint reserved for the Rendezvous mediator. /// public sealed class UdpMediatorOptions { /// /// Configuration section containing UDP mediator settings. /// public const string SectionName = "Rendezvous:Udp"; /// /// Gets or sets the numeric IP address to bind. /// [Required] public string ListenAddress { get; set; } = "0.0.0.0"; /// /// Gets or sets the UDP port. Zero requests an ephemeral port for tests. /// [Range(0, 65_535)] public int Port { get; set; } = 9050; }