public static bool DuplicatePorts(PortTypes port = PortTypes.ALL) { return(port != PortTypes.ALL ? _bombInfo.IsDuplicatePortPresent(port.ToString()) : _bombInfo.IsDuplicatePortPresent()); }
public static bool IsPortPresent(PortTypes port) { return(_bombInfo.IsPortPresent(port.ToString())); }
public static int PortCount(PortTypes port) { return(port == PortTypes.ALL ? _bombInfo.GetPortCount() : _bombInfo.GetPortCount(port.ToString())); }
public static int GetPort(this IConfiguration config, PortTypes portType) { var key = $"ports:{portType.ToString().ToLower()}"; return(config.GetValue <int>(key)); }