C# Class Helpmebot.Services.UrlShortening.UrlShorteningServiceBase

The url shortening service base.
Inheritance: IUrlShorteningService
Show file Open project: helpmebot/helpmebot

Public Methods

Method Description
Shorten ( string longUrl ) : string

The shorten.

Protected Methods

Method Description
GetShortUrl ( string longUrl ) : string

The get short url.

UrlShorteningServiceBase ( ILogger logger, IShortUrlCacheRepository shortUrlCacheRepository, IConfigurationHelper configurationHelper ) : Castle.Core.Logging

Initializes a new instance of the UrlShorteningServiceBase class.

Method Details

GetShortUrl() protected abstract method

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

Shorten() public method

The shorten.
public Shorten ( string longUrl ) : string
longUrl string /// The long url. ///
return string

UrlShorteningServiceBase() protected method

Initializes a new instance of the UrlShorteningServiceBase class.
protected UrlShorteningServiceBase ( ILogger logger, IShortUrlCacheRepository shortUrlCacheRepository, IConfigurationHelper configurationHelper ) : Castle.Core.Logging
logger ILogger /// The logger. ///
shortUrlCacheRepository IShortUrlCacheRepository /// The short url cache repository. ///
configurationHelper IConfigurationHelper /// The configuration Helper. ///
return Castle.Core.Logging