mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-08-18 15:10:48 +08:00
16 lines
497 B
C#
16 lines
497 B
C#
namespace LanMountainDesktop.AirAppSdk;
|
|
|
|
public sealed record AirAppRuntimeConfiguration(string Mode = AirAppRuntimeModes.InProcess)
|
|
{
|
|
public AirAppRuntimeMode RuntimeMode =>
|
|
AirAppRuntimeModes.TryParse(Mode, out var mode) ? mode : AirAppRuntimeMode.InProcess;
|
|
|
|
internal AirAppRuntimeConfiguration NormalizeAndValidate(string manifestPath)
|
|
{
|
|
return this with
|
|
{
|
|
Mode = AirAppRuntimeModes.NormalizeManifestValue(Mode, manifestPath)
|
|
};
|
|
}
|
|
}
|