C# 클래스 TwoFactorAuthNet.Providers.Qr.BaseHttpQrCodeProvider

Provides a base implementation for QR code providers.
파일 보기 프로젝트 열기: RobThree/TwoFactorAuth.Net

공개 프로퍼티들

프로퍼티 타입 설명
DEFAULTTIMEOUT System.TimeSpan
USERAGENT string

보호된 메소드들

메소드 설명
BaseHttpQrCodeProvider ( Uri baseUri, RemoteCertificateValidationCallback remoteCertificateValidationCallback ) : System

Initializes a new instance of a BaseHttpQrCodeProvider.

Color2Hex ( Color value ) : string

Returns the hexadecimal value for an RGB (Color) value.

DownloadData ( Uri address ) : byte[]

Downloads the resource with the specified Uri as a byte array.

GetWebClient ( ) : WebClient

Creates and returns a WebClient initialized with all default / desired properties already set.

메소드 상세

BaseHttpQrCodeProvider() 보호된 메소드

Initializes a new instance of a BaseHttpQrCodeProvider.
Thrown when is null.
protected BaseHttpQrCodeProvider ( Uri baseUri, RemoteCertificateValidationCallback remoteCertificateValidationCallback ) : System
baseUri System.Uri The base Uri for the QR code provider.
remoteCertificateValidationCallback RemoteCertificateValidationCallback /// The to be used by the QR code provider. ///
리턴 System

Color2Hex() 보호된 정적인 메소드

Returns the hexadecimal value for an RGB (Color) value.
protected static Color2Hex ( Color value ) : string
value Color The to convert.
리턴 string

DownloadData() 보호된 메소드

Downloads the resource with the specified Uri as a byte array.
protected DownloadData ( Uri address ) : byte[]
address System.Uri The URI represented by the object, from which to download data.
리턴 byte[]

GetWebClient() 보호된 메소드

Creates and returns a WebClient initialized with all default / desired properties already set.
protected GetWebClient ( ) : WebClient
리턴 System.Net.WebClient

프로퍼티 상세

DEFAULTTIMEOUT 공개적으로 정적으로 프로퍼티

Gets the default timeout for downloading QR codes.
public static TimeSpan,System DEFAULTTIMEOUT
리턴 System.TimeSpan

USERAGENT 공개적으로 정적으로 프로퍼티

Gets the useragent string used to identify when downloading QR codes.
public static string USERAGENT
리턴 string