C# Class Open.Core.Web.ServerProxy

Represents a pass through, retrieveing JSON from another server.
Show file Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
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

Private Methods

Method Description
FormatPath ( string urlPath ) : string
FormatUrl ( string url ) : string
GetBaseUrl ( ) : string
ProcessResponse ( HttpResponseMessage response ) : HttpResult

Method Details

Get() public method

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).
return HttpResult

Put() public method

public Put ( string urlPath, HttpContent content ) : HttpResult
urlPath string
content Microsoft.Http.HttpContent
return HttpResult

ServerProxy() public method

public ServerProxy ( string id, string url, string localHost ) : System.IO
id string
url string
localHost string
return System.IO