Adds strongly typed IOptions<T> binding, with Fluent Validation and shared appsettings for the Web client app

This commit is contained in:
BinaryAlley committed 2024-09-07 17:11:53 +03:00
1 parent cf7981aad4
commit d8c64920dc
6 files changed
+153 -1

No files matched your search

@@ -0,0 +1,23 @@
namespace Lumina.Presentation.Web.Common.Models.Configuration;
/// <summary>
/// Model for deserializing server configuration settings.
/// </summary>
public class ServerConfigurationModel
{
#region ================================================================== FIELD MEMBERS ================================================================================
public const string SectionName = "ServerConfiguration";
#endregion
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the remote API server path.
/// </summary>
public required string BaseAddress { get; init; }
/// <summary>
/// Gets or sets the remote API server port.
/// </summary>
public required ushort Port { get; init; }
#endregion
}