C# 클래스 Helpmebot.Services.UrlShortening.UrlShorteningServiceBase

The url shortening service base.
상속: IUrlShorteningService
파일 보기 프로젝트 열기: helpmebot/helpmebot

공개 메소드들

메소드 설명
Shorten ( string longUrl ) : string

The shorten.

보호된 메소드들

메소드 설명
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.

메소드 상세

GetShortUrl() 보호된 추상적인 메소드

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

Shorten() 공개 메소드

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

UrlShorteningServiceBase() 보호된 메소드

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. ///
리턴 Castle.Core.Logging