Show / Hide Table of Contents

Class PackageStore

Creates an instance of IMetadataStore that stores metadata in Azure Blob Storage

Inheritance
System.Object
PackageStore
Namespace: Microsoft.PackageGraph.Storage.Azure
Assembly: package-graph-microsoft-update.dll
Syntax
public abstract class PackageStore

Methods

| Improve this Doc View Source

Erase(CloudBlobClient, String)

Permanently deletes a IMetadataStore stored in the specified Azure Blob account and container

Declaration
public static void Erase(CloudBlobClient client, string containerName)
Parameters
Type Name Description
Microsoft.Azure.Storage.Blob.CloudBlobClient client

Azure blob client

System.String containerName

Container name that contains the metadata store

| Improve this Doc View Source

Exists(CloudBlobClient, CloudBlobContainer)

Checks if a IMetadataStore exists in the specified Azure Blob account and container

Declaration
public static bool Exists(CloudBlobClient client, CloudBlobContainer container)
Parameters
Type Name Description
Microsoft.Azure.Storage.Blob.CloudBlobClient client

Azure blob client

Microsoft.Azure.Storage.Blob.CloudBlobContainer container

Container name that contains the metadata store

Returns
Type Description
System.Boolean

True if the metadata store exists, false otherwise

| Improve this Doc View Source

Open(CloudBlobClient, String)

Opens an existing IMetadataStore from the specified Blob storage account and container name

Declaration
public static IMetadataStore Open(CloudBlobClient client, string containerName)
Parameters
Type Name Description
Microsoft.Azure.Storage.Blob.CloudBlobClient client

Azure blob client

System.String containerName

Container name that contains the metadata store

Returns
Type Description
IMetadataStore

An instance of IMetadataStore

| Improve this Doc View Source

Open(CloudBlobContainer)

Opens an existing IMetadataStore from the specified blob storage container reference

Declaration
public static IMetadataStore Open(CloudBlobContainer storeContainer)
Parameters
Type Name Description
Microsoft.Azure.Storage.Blob.CloudBlobContainer storeContainer

Reference to the container from which to open the metadata store

Returns
Type Description
IMetadataStore

An instance of IMetadataStore

| Improve this Doc View Source

OpenOrCreate(CloudBlobClient, String)

Opens or create a IMetadataStore from the specified blob storage container reference

Declaration
public static IMetadataStore OpenOrCreate(CloudBlobClient client, string containerName)
Parameters
Type Name Description
Microsoft.Azure.Storage.Blob.CloudBlobClient client

Azure blob client

System.String containerName

Container name that contains the metadata store

Returns
Type Description
IMetadataStore

An instance of IMetadataStore

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX