protected void scanhost(string ip, int timeout = 1000) { Console.WriteLine("Thread {0} is running", Thread.CurrentThread.ToString()); var res = NBTScan.GetNBTResponse(ip, timeout); nbtque.Enqueue(res); }
protected override void ProcessRecord() //Add this Process function method { //startscanner(); foreach (var comp in ComputerName) { // Console.WriteLine("foreach comp in computer"); // Console.WriteLine("Timeout: {0}",Timeout); WriteObject(NBTScan.GetNBTResponseAsync(comp, Timeout).Result); } }