public IToolResults Run() { string cmd, output; cmd = _options.Host; ProcessStartInfo si = new ProcessStartInfo(); si.RedirectStandardOutput = true; si.UseShellExecute = false; Process proc = new Process(); proc.StartInfo = si; proc.EnableRaisingEvents = false; proc.StartInfo.FileName = _options.Path; proc.StartInfo.Arguments = cmd; proc.Start(); output = proc.StandardOutput.ReadToEnd(); proc.WaitForExit(); WhoisToolResults results = ParseOutput(output); return(results); }
private WhoisToolResults ParseOutput(string output) { //There is no standard way afaict to parse whois results, this will do for now. //Even though I could just do this up in Run(), putting it in it's own method now //will keep things simple later if I need to make changes and add more logic. WhoisToolResults results = new WhoisToolResults(output); return(results); }
private WhoisToolResults ParseOutput(string output) { //There is no standard way afaict to parse whois results, this will do for now. //Even though I could just do this up in Run(), putting it in it's own method now //will keep things simple later if I need to make changes and add more logic. WhoisToolResults results = new WhoisToolResults(output); return results; }
public PersistentWhoisResults(WhoisToolResults results) { this.FullOutput = results.FullOutput; }