C# Класс TwoFactorAuthNet.Providers.Qr.BaseHttpQrCodeProvider

Provides a base implementation for QR code providers.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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