GeoIP2 Dotnet Versions Save

MaxMind GeoIP2 .NET API

v5.2.0

5 months ago
  • .NET 5.0 has been removed as a target as it has reach its end of life. However, if you are using .NET 5.0, the .NET Standard 2.1 target should continue working for you.
  • .NET 7.0 and .NET 8.0 have been added as a target.
  • The 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.

v5.1.0

2 years ago
  • Update System.Text.Json to 6.0.1 for .NET Standard 2.0 and 2.1.

v5.0.0

2 years ago
  • This library no longer targets .NET 4.6.1.
  • .NET 6.0 was added as a target.
  • On .NET 5.0+, HttpClient is now used for synchronous requests instead of WebRequest.

v4.1.0

2 years ago
  • Support for mobile country code (MCC) and mobile network codes (MNC) was added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2 City and Insights web services. The 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.

v4.0.1

3 years ago
  • This release fixes an issue with 4.0.0 where the synchronous web service methods could cause an unexpected JSON decoding error. There are no other changes. The async WebServiceClient methods and the DatabaseReader were not affected by the issue.

v4.0.0

3 years ago
  • This library now requires .NET Framework 4.6.1 or greater or .NET Standard 2.0 or greater.
  • .NET 5.0 was added as a target framework.
  • System.Text.Json is now used for deserialization of web service requests. Newtonsoft.Json is no longer supported for serialization or deserialization.
  • The Names properties on NamedEntity models are now IReadOnlyDictionary<string, string>.
  • The 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.
  • The httpMessageHandler argument is now correctly initialized by the WebServiceClient constructor.
  • The Metadata property was added to IGeoIP2DatabaseReader. Pull request by Mihai Valentin Caracostea. GitHub #134 & #135.

v3.3.0

3 years ago
  • The IsResidentialProxy property has been added to MaxMind.GeoIP2.Responses.AnonymousIPResponse and MaxMind.GeoIP2.Model.Traits.

v3.2.0

4 years ago
  • You may now create WebServiceClient as Typed Client with IHttpClientFactory in .NET Core 2.1+. Pull Request by Bojan Nikolić. GitHub #115 & #117.
  • The WebServiceClient constructor now supports an optional httpMessageHandler parameter. This is used in creating the HttpClient for asynchronous requests.

v3.1.0

4 years ago
  • This library has been updated to support the nullable reference types introduced in C# 8.0.
  • A 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.
  • The 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.
  • The 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.
  • Updated documentation of anonymizer properties - IsAnonymousVpn and IsHostingProvider - to be more descriptive.
  • netstandard2.1 was added as a target framework.

v3.0.0

6 years ago
  • The userId constructor parameter for WebServiceClient was renamed to accountId and support was added for the error codes ACCOUNT_ID_REQUIRED and ACCOUNT_ID_UNKNOWN.
  • The exception classes are no longer serializable when using the .NET Framework. This eliminates a difference between the .NET Framework assemblies and the .NET Standard ones.
  • The 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.