public static void AddPort(this Computer comp, PortData port) { var ports = PortTable.GetOrCreateValue(comp); if (ports.ContainsKey(port.Protocol)) { return; } comp.AddPort(port.Protocol, port.Port, port.DisplayName); }
public static void RegisterPort(PortData info) => RegisterPortInternal((PortRecord)info, Assembly.GetCallingAssembly());