C# Класс NuGet.PackageServer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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