C# 클래스 NuGet.PackageServer

파일 보기 프로젝트 열기: xero-github/Nuget 1 사용 예제들

공개 메소드들

메소드 설명
DeletePackage ( string apiKey, string packageId, string packageVersion ) : void
PackageServer ( string source, string userAgent ) : System
PushPackage ( string apiKey, Stream packageStream, int timeout ) : void

Pushes a package to the server that is represented by the stream.

비공개 메소드들

메소드 설명
EnsureSuccessfulResponse ( HttpClient client, HttpStatusCode expectedStatusCode = HttpStatusCode.OK ) : void
EnsureTrailingSlash ( Uri uri ) : Uri
GetClient ( string path, string method, string contentType ) : HttpClient
GetServiceEndpointUrl ( Uri baseUrl, string path ) : Uri
ResolveBaseUrl ( ) : Uri

메소드 상세

DeletePackage() 공개 메소드

public DeletePackage ( string apiKey, string packageId, string packageVersion ) : void
apiKey string
packageId string
packageVersion string
리턴 void

PackageServer() 공개 메소드

public PackageServer ( string source, string userAgent ) : System
source string
userAgent string
리턴 System

PushPackage() 공개 메소드

Pushes a package to the server that is represented by the stream.
public PushPackage ( string apiKey, Stream packageStream, int timeout ) : void
apiKey string API key to be used to push the package.
packageStream Stream Stream representing the package.
timeout int Time in milliseconds to timeout the server request.
리턴 void