Class PackageStore
Creates an instance of IMetadataStore that stores metadata in Azure Blob Storage
Inheritance
Namespace: Microsoft.PackageGraph.Storage.Azure
Assembly: package-graph-microsoft-update.dll
Syntax
public abstract class PackageStore
Methods
| Improve this Doc View SourceErase(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 |
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 |
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 |
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 |
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 |