Beispiel #1
0
 public static bool DuplicatePorts(PortTypes port = PortTypes.ALL)
 {
     return(port != PortTypes.ALL ? _bombInfo.IsDuplicatePortPresent(port.ToString()) : _bombInfo.IsDuplicatePortPresent());
 }
Beispiel #2
0
 public static bool IsPortPresent(PortTypes port)
 {
     return(_bombInfo.IsPortPresent(port.ToString()));
 }
Beispiel #3
0
 public static int PortCount(PortTypes port)
 {
     return(port == PortTypes.ALL ? _bombInfo.GetPortCount() : _bombInfo.GetPortCount(port.ToString()));
 }
Beispiel #4
0
        public static int GetPort(this IConfiguration config, PortTypes portType)
        {
            var key = $"ports:{portType.ToString().ToLower()}";

            return(config.GetValue <int>(key));
        }