build: bootstrap solution and quality gates (#3)
quality-gate / quality (push) Successful in 58s
quality-gate / quality (push) Successful in 58s
Closes #3
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user