2026-08-11 23:03:55 +08:00
|
|
|
using LanMountainDesktop.AirAppIsolation.Contracts;
|
2026-04-22 10:25:46 +08:00
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
namespace LanMountainDesktop.AirAppIsolation.Ipc;
|
2026-04-22 10:25:46 +08:00
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
public static class AirAppIpcConstants
|
2026-04-22 10:25:46 +08:00
|
|
|
{
|
2026-08-11 23:03:55 +08:00
|
|
|
public const string EnvironmentAirAppId = "LANMOUNTAIN_PLUGIN_ID";
|
2026-04-22 10:25:46 +08:00
|
|
|
public const string EnvironmentSessionId = "LANMOUNTAIN_PLUGIN_SESSION_ID";
|
|
|
|
|
public const string EnvironmentHostPipeName = "LANMOUNTAIN_PLUGIN_HOST_PIPE";
|
|
|
|
|
public const string EnvironmentProtocolVersion = "LANMOUNTAIN_PLUGIN_PROTOCOL_VERSION";
|
|
|
|
|
public const string EnvironmentRuntimeMode = "LANMOUNTAIN_PLUGIN_RUNTIME_MODE";
|
|
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
public const string CommandLineAirAppId = "--plugin-id";
|
2026-04-22 10:25:46 +08:00
|
|
|
public const string CommandLineSessionId = "--session-id";
|
|
|
|
|
public const string CommandLineHostPipeName = "--host-pipe-name";
|
|
|
|
|
public const string CommandLineProtocolVersion = "--protocol-version";
|
|
|
|
|
public const string CommandLineRuntimeMode = "--runtime-mode";
|
|
|
|
|
|
|
|
|
|
public static readonly TimeSpan DefaultConnectTimeout = TimeSpan.FromSeconds(10);
|
|
|
|
|
public static readonly TimeSpan DefaultRequestTimeout = TimeSpan.FromSeconds(30);
|
|
|
|
|
public static readonly TimeSpan DefaultHeartbeatInterval = TimeSpan.FromSeconds(5);
|
|
|
|
|
public static readonly TimeSpan DefaultHeartbeatTimeout = TimeSpan.FromSeconds(15);
|
|
|
|
|
|
2026-08-11 23:03:55 +08:00
|
|
|
public const string DefaultProtocolVersion = AirAppIsolationProtocolVersion.Current;
|
2026-04-22 10:25:46 +08:00
|
|
|
}
|