C# Класс AngleSharp.Io.Network.AboutRequester

Requester to perform about:// requests.
Наследование: IRequester
Показать файл Открыть проект

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

Метод Описание
AboutRequester ( ) : AngleSharp.Network

Creates a new about requester.

GetRoute ( String address ) : Func>

Gets the route for the given address, if any.

RequestAsync ( IRequest request, CancellationToken cancel ) : Task

Performs an asynchronous request that can be cancelled.

SetRoute ( String address, Func route ) : void

Sets the route for the given address.

SupportsProtocol ( String protocol ) : System.Boolean

Checks if the given protocol is supported.

Приватные методы

Метод Описание
GetAddress ( String data ) : String

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

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

Creates a new about requester.
public AboutRequester ( ) : AngleSharp.Network
Результат AngleSharp.Network

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

Gets the route for the given address, if any.
public GetRoute ( String address ) : Func>
address String The address of the route to obtain.
Результат Func>

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

Performs an asynchronous request that can be cancelled.
public RequestAsync ( IRequest request, CancellationToken cancel ) : Task
request IRequest The options to consider.
cancel System.Threading.CancellationToken The token for cancelling the task.
Результат Task

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

Sets the route for the given address.
public SetRoute ( String address, Func route ) : void
address String The address of the route.
route Func The route to use.
Результат void

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

Checks if the given protocol is supported.
public SupportsProtocol ( String protocol ) : System.Boolean
protocol String The protocol to check for, e.g. file.
Результат System.Boolean