C# Class Helpmebot.Services.Geolocation.MaxMindGeolocationService

The max mind geolocation service.
Inheritance: IGeolocationService, IDisposable
Show file Open project: helpmebot/helpmebot

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetLocation ( IPAddress address ) : GeolocateResult

The get location.

MaxMindGeolocationService ( ILogger logger, IPrivateConfiguration configuration ) : System

Initializes a new instance of the MaxMindGeolocationService class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

The dispose.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

The dispose.
protected Dispose ( bool disposing ) : void
disposing bool /// The disposing. ///
return void

GetLocation() public method

The get location.
public GetLocation ( IPAddress address ) : GeolocateResult
address System.Net.IPAddress /// The address. ///
return Helpmebot.Model.GeolocateResult

MaxMindGeolocationService() public method

Initializes a new instance of the MaxMindGeolocationService class.
public MaxMindGeolocationService ( ILogger logger, IPrivateConfiguration configuration ) : System
logger ILogger /// The logger. ///
configuration IPrivateConfiguration /// The configuration. ///
return System