C# Class Helpmebot.Services.UrlShortening.GooglUrlShorteningService

The http://goo.gl/ url shortening service.
Inheritance: UrlShorteningServiceBase
Show file Open project: helpmebot/helpmebot

Public Methods

Method Description
GooglUrlShorteningService ( ILogger logger, IShortUrlCacheRepository shortUrlCacheRepository, IConfigurationHelper configurationHelper ) : System

Initializes a new instance of the GooglUrlShorteningService class.

Protected Methods

Method Description
GetShortUrl ( string longUrl ) : string

The get short url.

Method Details

GetShortUrl() protected method

The get short url.
protected GetShortUrl ( string longUrl ) : string
longUrl string /// The long url. ///
return string

GooglUrlShorteningService() public method

Initializes a new instance of the GooglUrlShorteningService class.
public GooglUrlShorteningService ( ILogger logger, IShortUrlCacheRepository shortUrlCacheRepository, IConfigurationHelper configurationHelper ) : System
logger ILogger /// The logger. ///
shortUrlCacheRepository IShortUrlCacheRepository /// The short url cache repository. ///
configurationHelper IConfigurationHelper /// The configuration Helper. ///
return System