feat.RSS阅读器

This commit is contained in:
lincube
2026-07-11 15:52:12 +09:00
parent 0cf6833876
commit b5dab55fe2
20 changed files with 269 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ namespace LanMountainDesktop.AirAppRuntime;
internal interface IAirAppProcessStarter
{
Process? Start(string appId, string sessionId, string instanceKey, string? sourceComponentId, string? sourcePlacementId);
Process? Start(string appId, string sessionId, string instanceKey, string? sourceComponentId, string? sourcePlacementId, string? targetEntryId = null);
}
internal sealed class AirAppProcessStarter : IAirAppProcessStarter
@@ -32,7 +32,8 @@ internal sealed class AirAppProcessStarter : IAirAppProcessStarter
string sessionId,
string instanceKey,
string? sourceComponentId,
string? sourcePlacementId)
string? sourcePlacementId,
string? targetEntryId = null)
{
var hostPath = _locator.Resolve(_packageRootProvider(), _hostPathProvider());
var startInfo = CreateStartInfo(hostPath);
@@ -57,6 +58,11 @@ internal sealed class AirAppProcessStarter : IAirAppProcessStarter
AddArgument(startInfo, "--source-placement-id", sourcePlacementId.Trim());
}
if (!string.IsNullOrWhiteSpace(targetEntryId))
{
AddArgument(startInfo, "--target-entry-id", targetEntryId.Trim());
}
AirAppRuntimeLogger.Info(
$"Starting AirAppHost. AppId='{appId}'; InstanceKey='{instanceKey}'; HostPath='{hostPath}'; DataRoot='{dataRoot ?? string.Empty}'.");
var process = Process.Start(startInfo);