C# Class IronPigeon.Providers.TinyUrlShortener

A URL shortener that uses tinyurl.com
Inheritance: IUrlShortener
Afficher le fichier Open project: AArnott/IronPigeon

Méthodes publiques

Méthode Description
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.

Method Details

ShortenAsync() public méthode

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

TinyUrlShortener() public méthode

Initializes a new instance of the TinyUrlShortener class.
public TinyUrlShortener ( ) : System
Résultat System

TinyUrlShortener() public méthode

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