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

Наследование: IUrlShortener
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GoogleUrlShortener ( ) : System

Initializes a new instance of the GoogleUrlShortener class.

GoogleUrlShortener ( HttpClient httpClient ) : System

Initializes a new instance of the GoogleUrlShortener class.

ShortenAsync ( Uri longUrl, CancellationToken cancellationToken ) : Task

Shortens the specified long URL.

Описание методов

GoogleUrlShortener() публичный Метод

Initializes a new instance of the GoogleUrlShortener class.
public GoogleUrlShortener ( ) : System
Результат System

GoogleUrlShortener() публичный Метод

Initializes a new instance of the GoogleUrlShortener class.
public GoogleUrlShortener ( HttpClient httpClient ) : System
httpClient System.Net.Http.HttpClient The HTTP client.
Результат System

ShortenAsync() публичный Метод

Shortens the specified long URL.
public ShortenAsync ( Uri longUrl, CancellationToken cancellationToken ) : Task
longUrl System.Uri The long URL.
cancellationToken System.Threading.CancellationToken The cancellation token.
Результат Task