Class CellBootArgs
引导参数(C301 CLI 契约——dotnet KernLab.Cell.Runtime.dll --pack <dll> --startup <类型全名> --parent-pid <pid> --mode dynamic|aot)。
public sealed class CellBootArgs
- Inheritance
-
CellBootArgs
- Inherited Members
Constructors
CellBootArgs()
public CellBootArgs()
Properties
BootstrapPath
bootstrap UDS 路径(--bootstrap;Unix 接收段+门铃描述符,5 只成组)。
public string? BootstrapPath { get; init; }
Property Value
Carrier
载体(--carrier tcp|uds;缺省 tcp 环回)。
public string Carrier { get; init; }
Property Value
InstanceLabel
实例标签(--label;§3.2 使用方自定义串——缺省 pid-<pid>)。
public string InstanceLabel { get; init; }
Property Value
Mode
装载模式(--mode dynamic|aot;缺省 dynamic)。
public CellLoadMode Mode { get; init; }
Property Value
Packs
pack 程序集路径列表(--pack,可多次;aot 模式下必须为空——误配动态装载=启动失败)。
public IReadOnlyList<string> Packs { get; init; }
Property Value
ParentPid
父进程 PID(--parent-pid——1s 轮询,父死自杀,零孤儿 §6.1;缺省不启用)。
public int? ParentPid { get; init; }
Property Value
- int?
ShmName
shm 段名(--shm-name;Windows 按名接入,Unix 仅诊断标签)。
public string? ShmName { get; init; }
Property Value
ShmWaitStrategy
shm 读侧等待策略(--shm-wait blocking|busyspin|hybrid;缺省 hybrid——Tier §7 三档,各进程自选)。
public ShmRingWaitStrategy? ShmWaitStrategy { get; init; }
Property Value
- ShmRingWaitStrategy?
SocketDirectory
uds 端点落点目录(--socket-dir;仅 uds 载体使用)。
public string? SocketDirectory { get; init; }
Property Value
StartupTypeName
启动类型全名(--startup,必填——缺失=启动失败;assembly.GetType 单类型查找,非 GetTypes 遍历)。
public string StartupTypeName { get; init; }
Property Value
Methods
Parse(string[])
解析 CLI(严格形态——未知参数/缺值即 FormatException,由引导器转 ExitCode 11 取证)。
public static CellBootArgs Parse(string[] args)
Parameters
argsstring[]