C# Class NuGet.Test.Server.MemoryStorageFactory

Inheritance: NuGet.Services.Metadata.Catalog.Persistence.StorageFactory
Show file Open project: NuGet/Entropy Class Usage Examples

Public Methods

Method Description
Create ( string name = null ) : Storage
MemoryStorageFactory ( Uri baseAddress, MemoryStorageEntry>.IDictionary store ) : NuGet.Services.Metadata.Catalog.Persistence
OnLoad ( Uri resourceUri, CancellationToken cancellationToken ) : Task
OnSave ( Uri resourceUri, NuGet.Services.Metadata.Catalog.Persistence.StorageContent content, CancellationToken cancellationToken ) : Task

Method Details

Create() public method

public Create ( string name = null ) : Storage
name string
return NuGet.Services.Metadata.Catalog.Persistence.Storage

MemoryStorageFactory() public method

public MemoryStorageFactory ( Uri baseAddress, MemoryStorageEntry>.IDictionary store ) : NuGet.Services.Metadata.Catalog.Persistence
baseAddress System.Uri
store MemoryStorageEntry>.IDictionary
return NuGet.Services.Metadata.Catalog.Persistence

OnLoad() public method

public OnLoad ( Uri resourceUri, CancellationToken cancellationToken ) : Task
resourceUri System.Uri
cancellationToken System.Threading.CancellationToken
return Task

OnSave() public method

public OnSave ( Uri resourceUri, NuGet.Services.Metadata.Catalog.Persistence.StorageContent content, CancellationToken cancellationToken ) : Task
resourceUri System.Uri
content NuGet.Services.Metadata.Catalog.Persistence.StorageContent
cancellationToken System.Threading.CancellationToken
return Task