C# Class NuGet.PackageServer

Exibir arquivo Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

DeletePackage() public method

public DeletePackage ( string apiKey, string packageId, string packageVersion ) : void
apiKey string
packageId string
packageVersion string
return void

PackageServer() public method

public PackageServer ( string source, string userAgent ) : System
source string
userAgent string
return System

PushPackage() public method

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.
return void