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