mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 15:44:25 +08:00
16 lines
497 B
C#
16 lines
497 B
C#
namespace LanMountainDesktop.PluginSdk;
|
|
|
|
public sealed record PluginRuntimeConfiguration(string Mode = PluginRuntimeModes.InProcess)
|
|
{
|
|
public PluginRuntimeMode RuntimeMode =>
|
|
PluginRuntimeModes.TryParse(Mode, out var mode) ? mode : PluginRuntimeMode.InProcess;
|
|
|
|
internal PluginRuntimeConfiguration NormalizeAndValidate(string manifestPath)
|
|
{
|
|
return this with
|
|
{
|
|
Mode = PluginRuntimeModes.NormalizeManifestValue(Mode, manifestPath)
|
|
};
|
|
}
|
|
}
|