Skip to content

Commit 1f75272

Browse files
committed
Update quickstart.md
1 parent 8f460b1 commit 1f75272

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/source/quickstart.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Using myStream = New FileStream("C:\data\IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CI
149149
Console.WriteLine("GetDatabaseVersion: " & proxy.GetDatabaseVersion())
150150

151151
' reading all available fields
152-
all = proxy.GetAllAsync(ip)
152+
all = proxy.GetAllAsync(ip).Result
153153
Console.WriteLine("Is_Proxy: " & all.Is_Proxy.ToString())
154154
Console.WriteLine("Proxy_Type: " & all.Proxy_Type)
155155
Console.WriteLine("Country_Short: " & all.Country_Short)
@@ -166,46 +166,46 @@ Using myStream = New FileStream("C:\data\IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CI
166166
Console.WriteLine("Provider: " & all.Provider)
167167

168168
' reading individual fields
169-
isproxy = proxy.IsProxyAsync(ip)
169+
isproxy = proxy.IsProxyAsync(ip).Result
170170
Console.WriteLine("Is_Proxy: " & isproxy.ToString())
171171

172-
proxytype = proxy.GetProxyTypeAsync(ip)
172+
proxytype = proxy.GetProxyTypeAsync(ip).Result
173173
Console.WriteLine("Proxy_Type: " & proxytype)
174174

175-
countryshort = proxy.GetCountryShortAsync(ip)
175+
countryshort = proxy.GetCountryShortAsync(ip).Result
176176
Console.WriteLine("Country_Short: " & countryshort)
177177

178-
countrylong = proxy.GetCountryLongAsync(ip)
178+
countrylong = proxy.GetCountryLongAsync(ip).Result
179179
Console.WriteLine("Country_Long: " & countrylong)
180180

181-
region = proxy.GetRegionAsync(ip)
181+
region = proxy.GetRegionAsync(ip).Result
182182
Console.WriteLine("Region: " & region)
183183

184-
city = proxy.GetCityAsync(ip)
184+
city = proxy.GetCityAsync(ip).Result
185185
Console.WriteLine("City: " & city)
186186

187-
isp = proxy.GetISPAsync(ip)
187+
isp = proxy.GetISPAsync(ip).Result
188188
Console.WriteLine("ISP: " & isp)
189189

190-
domain = proxy.GetDomainAsync(ip)
190+
domain = proxy.GetDomainAsync(ip).Result
191191
Console.WriteLine("Domain: " & domain)
192192

193-
usagetype = proxy.GetUsageTypeAsync(ip)
193+
usagetype = proxy.GetUsageTypeAsync(ip).Result
194194
Console.WriteLine("Usage_Type: " & usagetype)
195195

196-
asn = proxy.GetASNAsync(ip)
196+
asn = proxy.GetASNAsync(ip).Result
197197
Console.WriteLine("ASN: " & asn)
198198

199-
[as] = proxy.GetASAsync(ip)
199+
[as] = proxy.GetASAsync(ip).Result
200200
Console.WriteLine("AS: " & [as])
201201

202-
lastseen = proxy.GetLastSeenAsync(ip)
202+
lastseen = proxy.GetLastSeenAsync(ip).Result
203203
Console.WriteLine("Last_Seen: " & lastseen)
204204

205-
threat = proxy.GetThreatAsync(ip)
205+
threat = proxy.GetThreatAsync(ip).Result
206206
Console.WriteLine("Threat: " & threat)
207207

208-
provider = proxy.GetProviderAsync(ip)
208+
provider = proxy.GetProviderAsync(ip).Result
209209
Console.WriteLine("Provider: " & provider)
210210
Else
211211
Console.WriteLine("Error reading BIN file.")

0 commit comments

Comments
 (0)