C# Class NuGet.PackageServer

Afficher le fichier Open project: xero-github/Nuget Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DeletePackage ( string apiKey, string packageId, string packageVersion ) : void
apiKey string
packageId string
packageVersion string
Résultat void

PackageServer() public méthode

public PackageServer ( string source, string userAgent ) : System
source string
userAgent string
Résultat System

PushPackage() public méthode

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.
Résultat void