예제 #1
0
        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);
        }
예제 #2
0
 public static void RegisterPort(PortData info) => RegisterPortInternal((PortRecord)info, Assembly.GetCallingAssembly());