C# Класс Open.Core.Web.ServerProxy

Represents a pass through, retrieveing JSON from another server.
Показать файл Открыть проект

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

Метод Описание
Get ( string urlPath ) : HttpResult

Issues a Get request to the target server to retreive data.

Put ( string urlPath, HttpContent content ) : HttpResult
ServerProxy ( string id, string url, string localHost ) : System.IO

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

Метод Описание
FormatPath ( string urlPath ) : string
FormatUrl ( string url ) : string
GetBaseUrl ( ) : string
ProcessResponse ( HttpResponseMessage response ) : HttpResult

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

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

Issues a Get request to the target server to retreive data.
public Get ( string urlPath ) : HttpResult
urlPath string The part of the path after the base Url (see the 'Url' property).
Результат HttpResult

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

public Put ( string urlPath, HttpContent content ) : HttpResult
urlPath string
content Microsoft.Http.HttpContent
Результат HttpResult

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

public ServerProxy ( string id, string url, string localHost ) : System.IO
id string
url string
localHost string
Результат System.IO