public static bool TryParse(string?value, [NotNullWhen(true)] out AgentId?agentId) { if (string.IsNullOrWhiteSpace(value)) { agentId = null; return(false); } agentId = new AgentId(value); return(true); }
public AgentDisconnected(AgentId agentId) => AgentId = agentId;