---
title: "AzureBlobStorageStore"
description: "Namespace: Lacuna.Pki.AzureConnector"
canonical: "https://docs.lacunasoftware.com/api/Lacuna.Pki.AzureConnector/AzureBlobStorageStore"
locale: "pt-BR"
product: "PKI SDK"
last_updated: "2026-06-02"
---

# AzureBlobStorageStore

**Namespace:** `Lacuna.Pki.AzureConnector`  
**Assembly:** `Lacuna.Pki.AzureConnector`  
_Class_

```csharp
public class AzureBlobStorageStore : ISimpleStore
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → `AzureBlobStorageStore`

## Campos

### `DefaultContainerName`

```csharp
public const string DefaultContainerName = "lacuna-pki-store"
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string)

---

## Métodos

### `CreateFromBlobClient(CloudBlobClient, string)`

```csharp
public static AzureBlobStorageStore CreateFromBlobClient(CloudBlobClient blobClient, string containerName = "lacuna-pki-store")
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `blobClient` | `CloudBlobClient` |  |
| `containerName` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

[`AzureBlobStorageStore`](https://docs.lacunasoftware.com/api/Lacuna.Pki.AzureConnector/AzureBlobStorageStore)

---

### `CreateFromConnectionString(string, string)`

```csharp
public static AzureBlobStorageStore CreateFromConnectionString(string connectionString, string containerName = "lacuna-pki-store")
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `connectionString` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |
| `containerName` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

[`AzureBlobStorageStore`](https://docs.lacunasoftware.com/api/Lacuna.Pki.AzureConnector/AzureBlobStorageStore)

---

### `CreateFromContainerReference(CloudBlobContainer)`

```csharp
public static AzureBlobStorageStore CreateFromContainerReference(CloudBlobContainer container)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `container` | `CloudBlobContainer` |  |

**Retorno**

[`AzureBlobStorageStore`](https://docs.lacunasoftware.com/api/Lacuna.Pki.AzureConnector/AzureBlobStorageStore)

---

### `CreateFromSettingName(string, string)`

```csharp
public static AzureBlobStorageStore CreateFromSettingName(string settingName, string containerName = "lacuna-pki-store")
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `settingName` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |
| `containerName` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

[`AzureBlobStorageStore`](https://docs.lacunasoftware.com/api/Lacuna.Pki.AzureConnector/AzureBlobStorageStore)

---

### `CreateFromStorageAccount(CloudStorageAccount, string)`

```csharp
public static AzureBlobStorageStore CreateFromStorageAccount(CloudStorageAccount storageAccount, string containerName = "lacuna-pki-store")
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `storageAccount` | `CloudStorageAccount` |  |
| `containerName` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

[`AzureBlobStorageStore`](https://docs.lacunasoftware.com/api/Lacuna.Pki.AzureConnector/AzureBlobStorageStore)

---

### `Get(byte[])`

```csharp
public byte[] Get(byte[] index)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `index` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

**Retorno**

[`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte)

---

### `GetAsync(byte[])`

```csharp
public Task<byte[]> GetAsync(byte[] index)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `index` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

**Retorno**

[`Task<byte[]>`](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)

---

### `GetContainerAsync()`

```csharp
protected Task<CloudBlobContainer> GetContainerAsync()
```

**Retorno**

[`Task<CloudBlobContainer>`](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)

---

### `Put(byte[], byte[])`

```csharp
public void Put(byte[] index, byte[] content)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `index` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |
| `content` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

---

### `PutAsync(byte[], byte[])`

```csharp
public Task PutAsync(byte[] index, byte[] content)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `index` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |
| `content` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

**Retorno**

[`Task`](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task)

---

## Membros herdados

[`ToString()`](https://learn.microsoft.com/dotnet/api/system.object.tostring), [`Equals(object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)>), [`Equals(object, object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)>), [`ReferenceEquals(object, object)`](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [`GetHashCode()`](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)
