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

Inheritance: IDisposable
Afficher le fichier Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Protected Properties

Свойство Type Description
_batch List
_open bool

Méthodes publiques

Méthode Description
Add ( NuGet.Services.Metadata.Catalog.CatalogItem item ) : void
CatalogWriterBase ( IStorage storage, ICatalogGraphPersistence graphPersistence = null, NuGet.Services.Metadata.Catalog.CatalogContext context = null ) : Newtonsoft.Json.Linq
Commit ( DateTime commitTimeStamp, IGraph commitMetadata, CancellationToken cancellationToken ) : Task>
Commit ( IGraph commitMetadata, CancellationToken cancellationToken ) : Task>
Dispose ( ) : void

Méthodes protégées

Méthode Description
CheckScheme ( Uri resourceUri, IGraph graph ) : void
CreateIndexContent ( IGraph graph, Uri type ) : StorageContent
CreatePageUri ( Uri baseAddress, string relativeAddress ) : Uri
CreateSaveOperationForItem ( IStorage storage, CatalogContext context, CatalogItem item, CancellationToken cancellationToken ) : ResourceSaveOperation
GetAdditionalRootType ( ) : Uri[]
LoadIndexResource ( Uri resourceUri, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task
SaveIndexResource ( Uri resourceUri, Uri typeUri, Guid commitId, DateTime commitTimeStamp, CatalogItemSummary>.IDictionary entries, Uri parent, IGraph extra, Uri additionalResourceTypes, CancellationToken cancellationToken ) : Task
SavePages ( Guid commitId, DateTime commitTimeStamp, CatalogItemSummary>.IDictionary itemEntries, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task

Private Methods

Méthode Description
LoadGraph ( Uri resourceUri, CancellationToken cancellationToken ) : Task
SaveGraph ( Uri resourceUri, IGraph graph, Uri typeUri, CancellationToken cancellationToken ) : Task
SaveItems ( Guid commitId, DateTime commitTimeStamp, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task
SaveRoot ( Guid commitId, DateTime commitTimeStamp, CatalogItemSummary>.IDictionary pageEntries, IGraph commitMetadata, CancellationToken cancellationToken ) : Task

Method Details

Add() public méthode

public Add ( NuGet.Services.Metadata.Catalog.CatalogItem item ) : void
item NuGet.Services.Metadata.Catalog.CatalogItem
Résultat void

CatalogWriterBase() public méthode

public CatalogWriterBase ( IStorage storage, ICatalogGraphPersistence graphPersistence = null, NuGet.Services.Metadata.Catalog.CatalogContext context = null ) : Newtonsoft.Json.Linq
storage IStorage
graphPersistence ICatalogGraphPersistence
context NuGet.Services.Metadata.Catalog.CatalogContext
Résultat Newtonsoft.Json.Linq

CheckScheme() protected méthode

protected CheckScheme ( Uri resourceUri, IGraph graph ) : void
resourceUri System.Uri
graph IGraph
Résultat void

Commit() public méthode

public Commit ( DateTime commitTimeStamp, IGraph commitMetadata, CancellationToken cancellationToken ) : Task>
commitTimeStamp DateTime
commitMetadata IGraph
cancellationToken CancellationToken
Résultat Task>

Commit() public méthode

public Commit ( IGraph commitMetadata, CancellationToken cancellationToken ) : Task>
commitMetadata IGraph
cancellationToken CancellationToken
Résultat Task>

CreateIndexContent() protected méthode

protected CreateIndexContent ( IGraph graph, Uri type ) : StorageContent
graph IGraph
type Uri
Résultat StorageContent

CreatePageUri() protected méthode

protected CreatePageUri ( Uri baseAddress, string relativeAddress ) : Uri
baseAddress Uri
relativeAddress string
Résultat Uri

CreateSaveOperationForItem() protected méthode

protected CreateSaveOperationForItem ( IStorage storage, CatalogContext context, CatalogItem item, CancellationToken cancellationToken ) : ResourceSaveOperation
storage IStorage
context CatalogContext
item CatalogItem
cancellationToken CancellationToken
Résultat ResourceSaveOperation

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetAdditionalRootType() protected méthode

protected GetAdditionalRootType ( ) : Uri[]
Résultat Uri[]

LoadIndexResource() protected méthode

protected LoadIndexResource ( Uri resourceUri, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task
resourceUri Uri
cancellationToken CancellationToken
Résultat CatalogItemSummary>>.Task

SaveIndexResource() protected méthode

protected SaveIndexResource ( Uri resourceUri, Uri typeUri, Guid commitId, DateTime commitTimeStamp, CatalogItemSummary>.IDictionary entries, Uri parent, IGraph extra, Uri additionalResourceTypes, CancellationToken cancellationToken ) : Task
resourceUri Uri
typeUri Uri
commitId Guid
commitTimeStamp DateTime
entries CatalogItemSummary>.IDictionary
parent Uri
extra IGraph
additionalResourceTypes Uri
cancellationToken CancellationToken
Résultat Task

SavePages() protected abstract méthode

protected abstract SavePages ( Guid commitId, DateTime commitTimeStamp, CatalogItemSummary>.IDictionary itemEntries, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task
commitId Guid
commitTimeStamp DateTime
itemEntries CatalogItemSummary>.IDictionary
cancellationToken CancellationToken
Résultat CatalogItemSummary>>.Task

Property Details

_batch protected_oe property

protected List _batch
Résultat List

_open protected_oe property

protected bool _open
Résultat bool