C# Класс IronPigeon.Providers.TinyUrlShortener

A URL shortener that uses tinyurl.com
Наследование: IUrlShortener
Показать файл Открыть проект

Открытые методы

Метод Описание
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