C# Класс NuGet.Services.Metadata.Catalog.CatalogWriterBase

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

Защищенные свойства (Protected)

Свойство Тип Описание
_batch List
_open bool

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

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

Защищенные методы

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

Приватные методы

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

Описание методов

Add() публичный Метод

public Add ( NuGet.Services.Metadata.Catalog.CatalogItem item ) : void
item NuGet.Services.Metadata.Catalog.CatalogItem
Результат void

CatalogWriterBase() публичный Метод

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
Результат Newtonsoft.Json.Linq

CheckScheme() защищенный Метод

protected CheckScheme ( Uri resourceUri, IGraph graph ) : void
resourceUri System.Uri
graph IGraph
Результат void

Commit() публичный Метод

public Commit ( DateTime commitTimeStamp, IGraph commitMetadata, CancellationToken cancellationToken ) : Task>
commitTimeStamp DateTime
commitMetadata IGraph
cancellationToken CancellationToken
Результат Task>

Commit() публичный Метод

public Commit ( IGraph commitMetadata, CancellationToken cancellationToken ) : Task>
commitMetadata IGraph
cancellationToken CancellationToken
Результат Task>

CreateIndexContent() защищенный Метод

protected CreateIndexContent ( IGraph graph, Uri type ) : StorageContent
graph IGraph
type Uri
Результат StorageContent

CreatePageUri() защищенный Метод

protected CreatePageUri ( Uri baseAddress, string relativeAddress ) : Uri
baseAddress Uri
relativeAddress string
Результат Uri

CreateSaveOperationForItem() защищенный Метод

protected CreateSaveOperationForItem ( IStorage storage, CatalogContext context, CatalogItem item, CancellationToken cancellationToken ) : ResourceSaveOperation
storage IStorage
context CatalogContext
item CatalogItem
cancellationToken CancellationToken
Результат ResourceSaveOperation

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetAdditionalRootType() защищенный Метод

protected GetAdditionalRootType ( ) : Uri[]
Результат Uri[]

LoadIndexResource() защищенный Метод

protected LoadIndexResource ( Uri resourceUri, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task
resourceUri Uri
cancellationToken CancellationToken
Результат CatalogItemSummary>>.Task

SaveIndexResource() защищенный Метод

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
Результат Task

SavePages() защищенный абстрактный Метод

protected abstract SavePages ( Guid commitId, DateTime commitTimeStamp, CatalogItemSummary>.IDictionary itemEntries, CancellationToken cancellationToken ) : CatalogItemSummary>>.Task
commitId Guid
commitTimeStamp DateTime
itemEntries CatalogItemSummary>.IDictionary
cancellationToken CancellationToken
Результат CatalogItemSummary>>.Task

Описание свойств

_batch защищенное свойство

protected List _batch
Результат List

_open защищенное свойство

protected bool _open
Результат bool