MaxMind GeoIP2 .NET API
IsAnycast
property was added to MaxMind.GeoIP2.Model.Traits
. This
returns true
if the IP address belongs to an anycast
network. This is available for the
GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country,
City, and Enterprise databases.MobileCountryCode
and
MobileNetworkCode
properties were added to MaxMind.GeoIP2.Responses.IspResponse
for the GeoIP2 ISP database and MaxMind.GeoIP2.Model.Traits
for the
Enterprise database and the GeoIP2 City and Insights web services. We expect
this data to be available by late January, 2022.WebServiceClient
methods and the DatabaseReader
were
not affected by the issue.System.Text.Json
is now used for deserialization of web service requests.
Newtonsoft.Json
is no longer supported for serialization or
deserialization.Names
properties on NamedEntity
models are now
IReadOnlyDictionary<string, string>
.Subdivisions
property on CityResponse
and InsightsResponse
is now
an IReadOnlyList<Subdivision>
.GeoNameId
properties on NamedEntity
models are now long?
rather than
int?
to match the underlying database.httpMessageHandler
argument is now correctly initialized by the
WebServiceClient
constructor.Metadata
property was added to IGeoIP2DatabaseReader
. Pull request
by Mihai Valentin Caracostea. GitHub #134 & #135.IsResidentialProxy
property has been added to
MaxMind.GeoIP2.Responses.AnonymousIPResponse
and
MaxMind.GeoIP2.Model.Traits
.WebServiceClient
as Typed Client with
IHttpClientFactory
in .NET Core 2.1+. Pull Request by Bojan Nikolić.
GitHub #115 & #117.WebServiceClient
constructor now supports an optional
httpMessageHandler
parameter. This is used in creating the HttpClient
for asynchronous requests.Network
property has been added to the various response models. This
represents the largest network where all the fields besides the IP
address are the same.StaticIPScore
property has been added to MaxMind.GeoIP2.Model.Traits
.
This output is available from GeoIP2 Precision Insights. It is an indicator
of how static or dynamic an IP address is.UserCount
property has been added to MaxMind.GeoIP2.Model.Traits
.
This output is available from GeoIP2 Precision Insights. It is an
estimate of the number of users sharing the IP/network over the past
24 hours.IsAnonymousVpn
and
IsHostingProvider
- to be more descriptive.netstandard2.1
was added as a target framework.userId
constructor parameter for WebServiceClient
was renamed to
accountId
and support was added for the error codes ACCOUNT_ID_REQUIRED
and ACCOUNT_ID_UNKNOWN
.AutonomousSystemNumber
properties on MaxMind.GeoIP2.Model.Traits
,
MaxMind.GeoIP2.Responses.AsnResponse
, and
MaxMind.GeoIP2.Responses.IspResponse
are now long?
to match the underlying
types in the databases.MaxMind.Db
was upgraded to 2.4.0. This adds a new file mode enum value for
the database reader, FileAccessMode.MemoryMappedGlobal
. When used, this will
open the file in global memory map mode. This requires the "create global
objects" right.