C# 클래스 Ng.Jobs.CatalogUtility

Utility class to share functionality between Package2Catalog and Feed2Catalog.
파일 보기 프로젝트 열기: NuGet/NuGet.Services.Metadata

공개 메소드들

메소드 설명
CreateHttpClient ( bool verbose ) : HttpClient
DownloadMetadata2Catalog ( HttpClient client, SortedList packages, Storage storage, System.DateTime lastCreated, System.DateTime lastEdited, System.DateTime lastDeleted, bool createdPackages, CancellationToken cancellationToken, ILogger logger ) : Task
GetCatalogProperty ( Storage storage, string propertyName, CancellationToken cancellationToken ) : Task
GetPackages ( HttpClient client, Uri uri, string keyDateProperty ) : IList>>.Task

비공개 메소드들

메소드 설명
DetermineLastDate ( System.DateTime lastCreated, System.DateTime lastEdited, bool createdPackages ) : System.DateTime
ForceUtc ( System.DateTime date ) : System.DateTime

메소드 상세

CreateHttpClient() 공개 정적인 메소드

public static CreateHttpClient ( bool verbose ) : HttpClient
verbose bool
리턴 System.Net.Http.HttpClient

DownloadMetadata2Catalog() 공개 정적인 메소드

public static DownloadMetadata2Catalog ( HttpClient client, SortedList packages, Storage storage, System.DateTime lastCreated, System.DateTime lastEdited, System.DateTime lastDeleted, bool createdPackages, CancellationToken cancellationToken, ILogger logger ) : Task
client System.Net.Http.HttpClient
packages SortedList
storage NuGet.Services.Metadata.Catalog.Persistence.Storage
lastCreated System.DateTime
lastEdited System.DateTime
lastDeleted System.DateTime
createdPackages bool
cancellationToken System.Threading.CancellationToken
logger ILogger
리턴 Task

GetCatalogProperty() 공개 정적인 메소드

public static GetCatalogProperty ( Storage storage, string propertyName, CancellationToken cancellationToken ) : Task
storage NuGet.Services.Metadata.Catalog.Persistence.Storage
propertyName string
cancellationToken System.Threading.CancellationToken
리턴 Task

GetPackages() 공개 정적인 메소드

public static GetPackages ( HttpClient client, Uri uri, string keyDateProperty ) : IList>>.Task
client System.Net.Http.HttpClient
uri System.Uri
keyDateProperty string
리턴 IList>>.Task