C# Class IronPigeon.Providers.TinyUrlShortener

A URL shortener that uses tinyurl.com
Inheritance: IUrlShortener
Datei anzeigen Open project: AArnott/IronPigeon

Public Methods

Method 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 method

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

TinyUrlShortener() public method

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

TinyUrlShortener() public method

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