C# 클래스 Open.Core.Web.ServerProxy

Represents a pass through, retrieveing JSON from another server.
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

공개 메소드들

메소드 설명
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