Method | Description | |
---|---|---|
Shorten ( string longUrl ) : string |
The shorten.
|
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.
|
protected abstract GetShortUrl ( string longUrl ) : string | ||
longUrl | string | /// The long url. /// |
return | string |
public Shorten ( string longUrl ) : string | ||
longUrl | string | /// The long url. /// |
return | string |
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 |