The program aggregates a number of whois servers. Creates the necessary request and interprets the response into a common object.
using WhoisObserver;
using WhoisObserver.Services.Model;
...
async void Test1()
{
var st0 = new WhoisClient();
var st1 = st0.GetResponceJsonAsync("ya.ru", ServersClientFamily.IpApi).Result;
Console.WriteLine(st1.CountryCode);
}
Test1();
using WhoisObserver;
using WhoisObserver.Services.Model;
...
async void Test2()
{
var st0 = new WhoisClient();
var st1 = st0.GetResponceModelAsync("13.228.116.142", ServersClientFamily.IpApi).Result;
Console.WriteLine(st1.CountryCode);
}
Test2());
- .NETStandard 2.0
- AutoMapper (>= 10.1.1)
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http.Json (>= 6.0.0)
- System.Text.Json (>= 6.0.5)
Telegram: https://t.me/Hekkaaa
Email: silencemyalise@gmail.com