C# Class IronPigeon.Providers.GoogleUrlShortener

Inheritance: IUrlShortener
Afficher le fichier Open project: AArnott/IronPigeon Class Usage Examples

Méthodes publiques

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

Method Details

GoogleUrlShortener() public méthode

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

GoogleUrlShortener() public méthode

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

ShortenAsync() public méthode

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.
Résultat Task