C# Class NuGet.Services.Metadata.Catalog.AppendOnlyCatalogWriter

Inheritance: CatalogWriterBase
显示文件 Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Public Methods

Method Description
AppendOnlyCatalogWriter ( Storage storage, int maxPageSize = 1000, bool append = true, ICatalogGraphPersistence catalogGraphPersistence = null, NuGet.Services.Metadata.Catalog.CatalogContext context = null ) : NuGet.Services.Metadata.Catalog.Persistence

Protected Methods

Method Description
GetAdditionalRootType ( ) : System.Uri[]
SavePages ( System.Guid commitId, System.DateTime commitTimeStamp, CatalogItemSummary>.IDictionary itemEntries, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task

Private Methods

Method Description
ExtractLatest ( CatalogItemSummary>.IDictionary currentPageEntries ) : Tuple
GetPageUri ( CatalogItemSummary>.IDictionary currentPageEntries, int newItemCount, bool &isExistingPage ) : Uri

Method Details

AppendOnlyCatalogWriter() public method

public AppendOnlyCatalogWriter ( Storage storage, int maxPageSize = 1000, bool append = true, ICatalogGraphPersistence catalogGraphPersistence = null, NuGet.Services.Metadata.Catalog.CatalogContext context = null ) : NuGet.Services.Metadata.Catalog.Persistence
storage NuGet.Services.Metadata.Catalog.Persistence.Storage
maxPageSize int
append bool
catalogGraphPersistence ICatalogGraphPersistence
context NuGet.Services.Metadata.Catalog.CatalogContext
return NuGet.Services.Metadata.Catalog.Persistence

GetAdditionalRootType() protected method

protected GetAdditionalRootType ( ) : System.Uri[]
return System.Uri[]

SavePages() protected method

protected SavePages ( System.Guid commitId, System.DateTime commitTimeStamp, CatalogItemSummary>.IDictionary itemEntries, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task
commitId System.Guid
commitTimeStamp System.DateTime
itemEntries CatalogItemSummary>.IDictionary
cancellationToken System.Threading.CancellationToken
return CatalogItemSummary>>.Task