C# Class NuGet.Services.Metadata.Catalog.Registration.RegistrationMakerCatalogWriter

Inheritance: CatalogWriterBase
Exibir arquivo Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Public Methods

Method Description
RegistrationMakerCatalogWriter ( IStorage storage, int partitionSize = 100, IList cleanUpList = null, ICatalogGraphPersistence graphPersistence = null, CatalogContext context = null ) : Newtonsoft.Json.Linq

Protected Methods

Method Description
CreateIndexContent ( IGraph graph, Uri type ) : NuGet.Services.Metadata.Catalog.Persistence.StorageContent
CreateSaveOperationForItem ( IStorage storage, CatalogContext context, CatalogItem item, CancellationToken cancellationToken ) : ResourceSaveOperation
GetAdditionalRootType ( ) : System.Uri[]
SavePages ( System.Guid commitId, System.DateTime commitTimeStamp, CatalogItemSummary>.IDictionary itemEntries, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task

Private Methods

Method Description
CreateExtraGraph ( Uri pageUri, string lower, string upper ) : IGraph
CreatePageSummary ( Uri newPageUri, string lower, string upper ) : IGraph
GetPackageVersion ( Uri packageUri, IGraph pageContent ) : NuGet.Versioning.NuGetVersion
PartitionAndSavePages ( System.Guid commitId, System.DateTime commitTimeStamp, CatalogItemSummary>.SortedDictionary versions, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task

Method Details

CreateIndexContent() protected method

protected CreateIndexContent ( IGraph graph, Uri type ) : NuGet.Services.Metadata.Catalog.Persistence.StorageContent
graph IGraph
type System.Uri
return NuGet.Services.Metadata.Catalog.Persistence.StorageContent

CreateSaveOperationForItem() protected method

protected CreateSaveOperationForItem ( IStorage storage, CatalogContext context, CatalogItem item, CancellationToken cancellationToken ) : ResourceSaveOperation
storage IStorage
context CatalogContext
item CatalogItem
cancellationToken System.Threading.CancellationToken
return ResourceSaveOperation

GetAdditionalRootType() protected method

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

RegistrationMakerCatalogWriter() public method

public RegistrationMakerCatalogWriter ( IStorage storage, int partitionSize = 100, IList cleanUpList = null, ICatalogGraphPersistence graphPersistence = null, CatalogContext context = null ) : Newtonsoft.Json.Linq
storage IStorage
partitionSize int
cleanUpList IList
graphPersistence ICatalogGraphPersistence
context CatalogContext
return Newtonsoft.Json.Linq

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