\r\n

51Degrees Geo-Location .NET  4.4

Geo-location services for 51Degrees Pipeline

FiftyOne.GeoLocation.GeoLocationPipelineBuilder Class Reference

Detailed Description

Fluent builder used to create a IPipeline that includes a reverse geocoding engine.

Public Member Functions

 GeoLocationPipelineBuilder ()
Constructor More...
 GeoLocationPipelineBuilder (ILoggerFactory loggerFactory)
Constructor More...
 GeoLocationPipelineBuilder (ILoggerFactory loggerFactory, HttpClient httpClient)
Constructor More...
GeoLocationCloudPipelineBuilder  UseCloud (string resourceKey, GeoLocationProvider provider)
Use the 51Degrees cloud service to perform Geo Location. More...
GeoLocationCloudPipelineBuilder  UseCloud (string resourceKey, string endpoint, GeoLocationProvider provider)
Use the 51Degrees cloud service to perform Geo Location. More...

Properties

ILoggerFactory  LoggerFactory [get]
The factory to use when building loggers. More...
HttpClient  HttpClient [get]
The HttpClient to use when making HTTP requests. More...

Constructor & Destructor Documentation

◆ GeoLocationPipelineBuilder() [1/3]

FiftyOne.GeoLocation.GeoLocationPipelineBuilder.GeoLocationPipelineBuilder ( )

Constructor

◆ GeoLocationPipelineBuilder() [2/3]

FiftyOne.GeoLocation.GeoLocationPipelineBuilder.GeoLocationPipelineBuilder ( ILoggerFactory   loggerFactory )

Constructor

Parameters
loggerFactory - The factory to use for creating loggers within the pipeline.

◆ GeoLocationPipelineBuilder() [3/3]

FiftyOne.GeoLocation.GeoLocationPipelineBuilder.GeoLocationPipelineBuilder ( ILoggerFactory   loggerFactory,
HttpClient   httpClient  
)

Constructor

Parameters
loggerFactory - The factory to use for creating loggers within the pipeline.
httpClient - The HTTP client to use within the pipeline.

Member Function Documentation

◆ UseCloud() [1/2]

GeoLocationCloudPipelineBuilder FiftyOne.GeoLocation.GeoLocationPipelineBuilder.UseCloud ( string   resourceKey,
GeoLocationProvider   provider  
)

Use the 51Degrees cloud service to perform Geo Location.

Parameters
resourceKey - The resource key to use when querying the cloud service. Obtain one from https://configure.51degrees.com
provider - The Geo Location provider to use.
Returns
A builder that can be used to configure and build a pipeline that will use the cloud Geo Location engine.

◆ UseCloud() [2/2]

GeoLocationCloudPipelineBuilder FiftyOne.GeoLocation.GeoLocationPipelineBuilder.UseCloud ( string   resourceKey,
string   endpoint,
GeoLocationProvider   provider  
)

Use the 51Degrees cloud service to perform Geo Location.

Parameters
resourceKey - The resource key to use when querying the cloud service. Obtain one from https://configure.51degrees.com
endpoint - The 51Degrees cloud URL.
provider - The Geo Location provider to use.
Returns
A builder that can be used to configure and build a pipeline that will use the cloud Geo Location engine.

Property Documentation

◆ HttpClient

HttpClient FiftyOne.GeoLocation.GeoLocationPipelineBuilder.HttpClient
get

The HttpClient to use when making HTTP requests.

◆ LoggerFactory

ILoggerFactory FiftyOne.GeoLocation.GeoLocationPipelineBuilder.LoggerFactory
get

The factory to use when building loggers.