C# 클래스 IronPigeon.Providers.GoogleUrlShortener

상속: IUrlShortener
파일 보기 프로젝트 열기: AArnott/IronPigeon 1 사용 예제들

공개 메소드들

메소드 설명
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