C# Класс Recognos.Core.UriExtensions

Useful extensions for Uri processing.
Показать файл Открыть проект

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

Метод Описание
ExtractUris ( this input ) : IEnumerable

Extracts the uris from a string.

IsWeb ( this uri ) : bool

Determines whether the specified URI is a web uri (http or https).

ResolveRedirects ( this uri ) : Uri

Resolves the redirects for the specified URI is required.

If http errors are encountered the input uri is returned.

ResolveRedirects ( this uri, Uri>.Func error ) : Uri

Resolves the redirects for the specified URI is required.

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

ExtractUris() публичный статический Метод

Extracts the uris from a string.
public static ExtractUris ( this input ) : IEnumerable
input this The input string.
Результат IEnumerable

IsWeb() публичный статический Метод

Determines whether the specified URI is a web uri (http or https).
public static IsWeb ( this uri ) : bool
uri this The URI.
Результат bool

ResolveRedirects() публичный статический Метод

Resolves the redirects for the specified URI is required.
If http errors are encountered the input uri is returned.
public static ResolveRedirects ( this uri ) : Uri
uri this The URI.
Результат System.Uri

ResolveRedirects() публичный статический Метод

Resolves the redirects for the specified URI is required.
public static ResolveRedirects ( this uri, Uri>.Func error ) : Uri
uri this The URI.
error Uri>.Func Action to be performed when http error is encountered.
Результат System.Uri