C# 클래스 IronPigeon.Providers.TinyUrlShortener

A URL shortener that uses tinyurl.com
상속: IUrlShortener
파일 보기 프로젝트 열기: AArnott/IronPigeon

공개 메소드들

메소드 설명
ShortenAsync ( Uri longUrl, CancellationToken cancellationToken ) : Task

Shortens the asynchronous.

TinyUrlShortener ( ) : System

Initializes a new instance of the TinyUrlShortener class.

TinyUrlShortener ( HttpClient httpClient ) : System

Initializes a new instance of the TinyUrlShortener class.

메소드 상세

ShortenAsync() 공개 메소드

Shortens the asynchronous.
public ShortenAsync ( Uri longUrl, CancellationToken cancellationToken ) : Task
longUrl System.Uri The long URL.
cancellationToken System.Threading.CancellationToken The cancellation token.
리턴 Task

TinyUrlShortener() 공개 메소드

Initializes a new instance of the TinyUrlShortener class.
public TinyUrlShortener ( ) : System
리턴 System

TinyUrlShortener() 공개 메소드

Initializes a new instance of the TinyUrlShortener class.
public TinyUrlShortener ( HttpClient httpClient ) : System
httpClient System.Net.Http.HttpClient The HTTP client.
리턴 System