C# 클래스 ThoughtWorksMingleLib.MingleServer

상속: IMingleServer
파일 보기 프로젝트 열기: ThoughtWorksStudios/mingle.net 1 사용 예제들

공개 메소드들

메소드 설명
FullyQualifiedMingleUrl ( string project, string urlSegment ) : string

Adds "/api/v2" to the front of a URL segment

Get ( string project, string url ) : string

Performs a GET on the url with optional query paramaters and returns HttpWebResponse

Get ( string project, string url, IEnumerable data ) : string

Performs a GET on the url with optional query paramaters and returns HttpWebResponse

GetProject ( string projectId ) : MingleProject

Returns the MingleProject for the project Id on this MingleServer (instance)

GetProjectList ( ) : string>.SortedList

Returns a Sorted list of project names and identifiers

GetSecureStringFromString ( string value ) : SecureString

Converts a String into a read-only SecureString

MingleServer ( string hostUrl, string loginName, SecureString password ) : System

Constructs a new MingleServer

MingleServer ( string hostUrl, string loginName, string password ) : System

Constructs a new MingleServer

Post ( string project, string url, IEnumerable data ) : IResponse

Performs a POST on the Mingle url with optional post data and returns HttpWebResponse

Put ( string project, string url, IEnumerable data ) : IResponse

Performs a PUT on the Mingle url with optional post data and returns IResponse

비공개 메소드들

메소드 설명
AcceptAllCertifications ( object sender, X509Certificate certification, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Allows all certificates to be considered acceptable.

EnablePreAuthentication ( Uri uri, string authenticationType ) : void

Enables pre-wuthentication on web requests. Improves performance.

See MSDN Library documentation for AuthenticaionManager: http://msdn.microsoft.com/en-us/library/3dx32b0y.aspx

Get ( string url ) : string
GetResponse ( string method, string project, string urlSegment, IEnumerable data ) : IResponse

Returns the body of a web response from Mingle

GetStringFromSecureString ( SecureString secureString ) : string

Converts a SecureString to String

NormalizeUrlSegment ( string url ) : object

Ensures a URL segment, passed as a string, begins and does not end with "/"

메소드 상세

FullyQualifiedMingleUrl() 공개 메소드

Adds "/api/v2" to the front of a URL segment
public FullyQualifiedMingleUrl ( string project, string urlSegment ) : string
project string Mingle project id (not name)
urlSegment string URL segment string
리턴 string

Get() 공개 메소드

Performs a GET on the url with optional query paramaters and returns HttpWebResponse
public Get ( string project, string url ) : string
project string
url string
리턴 string

Get() 공개 메소드

Performs a GET on the url with optional query paramaters and returns HttpWebResponse
public Get ( string project, string url, IEnumerable data ) : string
project string
url string
data IEnumerable
리턴 string

GetProject() 공개 메소드

Returns the MingleProject for the project Id on this MingleServer (instance)
public GetProject ( string projectId ) : MingleProject
projectId string
리턴 MingleProject

GetProjectList() 공개 메소드

Returns a Sorted list of project names and identifiers
public GetProjectList ( ) : string>.SortedList
리턴 string>.SortedList

GetSecureStringFromString() 공개 정적인 메소드

Converts a String into a read-only SecureString
public static GetSecureStringFromString ( string value ) : SecureString
value string
리턴 System.Security.SecureString

MingleServer() 공개 메소드

Constructs a new MingleServer
public MingleServer ( string hostUrl, string loginName, SecureString password ) : System
hostUrl string Host url
loginName string Login name of the user
password System.Security.SecureString password
리턴 System

MingleServer() 공개 메소드

Constructs a new MingleServer
public MingleServer ( string hostUrl, string loginName, string password ) : System
hostUrl string Host url
loginName string Login name of the user
password string password
리턴 System

Post() 공개 메소드

Performs a POST on the Mingle url with optional post data and returns HttpWebResponse
public Post ( string project, string url, IEnumerable data ) : IResponse
project string
url string
data IEnumerable
리턴 IResponse

Put() 공개 메소드

Performs a PUT on the Mingle url with optional post data and returns IResponse
public Put ( string project, string url, IEnumerable data ) : IResponse
project string
url string
data IEnumerable
리턴 IResponse