mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 22:11:10 +00:00
Adds strongly typed IOptions<T> binding, with Fluent Validation and shared appsettings for the Web client app
This commit is contained in:
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
|
||||
}
|
||||
Reference in new issue
Block a user