C# Class VersionOne.ServiceHost.HPALMConnector.HPALMConnector

Inheritance: IDisposable
Mostrar archivo Open project: versionone/VersionOne.Integration.HPALM

Public Methods

Method Description
Authenticate ( string username, string password ) : bool
Dispose ( ) : void
Get ( string resource ) : System.Xml.Linq.XDocument
HPALMConnector ( string url ) : System
Logout ( ) : void
Post ( string resource, object data = null ) : System.Xml.Linq.XDocument
Put ( string resource, object data = null ) : System.Xml.Linq.XDocument

Private Methods

Method Description
CreateAlmAuthenticationPayload ( string username, string password ) : System.Xml.Linq.XDocument
GetData ( string resource ) : HttpResponseMessage
HPALMConnector ( ) : System
SendData ( string resource, HttpMethod httpMethod, object data = null ) : HttpResponseMessage

Method Details

Authenticate() public method

public Authenticate ( string username, string password ) : bool
username string
password string
return bool

Dispose() public method

public Dispose ( ) : void
return void

Get() public method

public Get ( string resource ) : System.Xml.Linq.XDocument
resource string
return System.Xml.Linq.XDocument

HPALMConnector() public method

public HPALMConnector ( string url ) : System
url string
return System

Logout() public method

public Logout ( ) : void
return void

Post() public method

public Post ( string resource, object data = null ) : System.Xml.Linq.XDocument
resource string
data object
return System.Xml.Linq.XDocument

Put() public method

public Put ( string resource, object data = null ) : System.Xml.Linq.XDocument
resource string
data object
return System.Xml.Linq.XDocument