C# Class Helpmebot.Services.UrlShortening.UrlShorteningServiceBase

The url shortening service base.
Inheritance: IUrlShorteningService
Afficher le fichier Open project: helpmebot/helpmebot

Méthodes publiques

Méthode Description
Shorten ( string longUrl ) : string

The shorten.

Méthodes protégées

Méthode 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 méthode

The get short url.
protected abstract GetShortUrl ( string longUrl ) : string
longUrl string /// The long url. ///
Résultat string

Shorten() public méthode

The shorten.
public Shorten ( string longUrl ) : string
longUrl string /// The long url. ///
Résultat string

UrlShorteningServiceBase() protected méthode

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. ///
Résultat Castle.Core.Logging