C# Class VersionOne.SDK.APIClient.V1CredsAPIConnector

Inheritance: IAPIConnector
显示文件 Open project: versionone/VersionOne.SDK.NET.APIClient

Protected Properties

Property Type Description
_creds System.Net.ICredentials

Private Properties

Property Type Description
CreateRequest System.Net.HttpWebRequest
FormatAssemblyUserAgent string

Public Methods

Method Description
BeginRequest ( string apipath ) : Stream
DebugReq ( HttpWebRequest req, WebResponse resp ) : void
EndRequest ( string apipath, string contentType ) : Stream
GetData ( ) : Stream
GetData ( string apipath ) : Stream
HttpGet ( string apipath, bool refreshTokenIfNeeded = true, string contentType = "text/xml" ) : Stream
HttpPost ( string apipath, byte body, string contentType = "text/xml" ) : Stream
SendData ( string apipath, string data ) : Stream
SetUpstreamUserAgent ( string userAgent ) : void
V1CredsAPIConnector ( string urlPrefix, System creds = null, ProxyProvider proxy = null ) : System

Private Methods

Method Description
CreateRequest ( string url, string method = "GET", string contenttype = "text/xml" ) : HttpWebRequest
FormatAssemblyUserAgent ( Assembly a, string upstream = null ) : string

Method Details

BeginRequest() public method

public BeginRequest ( string apipath ) : Stream
apipath string
return Stream

DebugReq() public method

public DebugReq ( HttpWebRequest req, WebResponse resp ) : void
req System.Net.HttpWebRequest
resp System.Net.WebResponse
return void

EndRequest() public method

public EndRequest ( string apipath, string contentType ) : Stream
apipath string
contentType string
return Stream

GetData() public method

public GetData ( ) : Stream
return Stream

GetData() public method

public GetData ( string apipath ) : Stream
apipath string
return Stream

HttpGet() public method

public HttpGet ( string apipath, bool refreshTokenIfNeeded = true, string contentType = "text/xml" ) : Stream
apipath string
refreshTokenIfNeeded bool
contentType string
return Stream

HttpPost() public method

public HttpPost ( string apipath, byte body, string contentType = "text/xml" ) : Stream
apipath string
body byte
contentType string
return Stream

SendData() public method

public SendData ( string apipath, string data ) : Stream
apipath string
data string
return Stream

SetUpstreamUserAgent() public method

public SetUpstreamUserAgent ( string userAgent ) : void
userAgent string
return void

V1CredsAPIConnector() public method

public V1CredsAPIConnector ( string urlPrefix, System creds = null, ProxyProvider proxy = null ) : System
urlPrefix string
creds System
proxy ProxyProvider
return System

Property Details

_creds protected_oe property

protected ICredentials,System.Net _creds
return System.Net.ICredentials