# AzureBlobStorageHostingExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.azurestorage/orleans.durable.journaling.azureblobstoragehostingextensions/)

## AddAzureBlobJournalStorage(ISiloBuilder) {#addazureblobjournalstorage-this-orleans-hosting-isilobuilder-18dc6258}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.azurestorage/orleans.durable.journaling.azureblobstoragehostingextensions/methods/addazureblobjournalstorage-this-orleans-hosting-isilobuilder-18dc6258/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Azure/Orleans.Durable.AzureStorage/Journaling/AzureBlobStorageHostingExtensions.cs#L18)

```csharp
public static ISiloBuilder AddAzureBlobJournalStorage(this ISiloBuilder builder)
```

Configures Azure Blob Storage as the journal storage provider.

### Parameters

- `builder` (`ISiloBuilder`): The silo builder.

### Returns

The silo builder.

### Exceptions

- `System.ArgumentNullException`: `builder` is `null`.

## AddAzureBlobJournalStorage(ISiloBuilder, Action&lt;AzureBlobJournalStorageOptions&gt;) {#addazureblobjournalstorage-this-orleans-hosting-isilobuilder-system-action-orlea-2fa05a1b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.azurestorage/orleans.durable.journaling.azureblobstoragehostingextensions/methods/addazureblobjournalstorage-this-orleans-hosting-isilobuilder-system-action-orlea-2fa05a1b/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Azure/Orleans.Durable.AzureStorage/Journaling/AzureBlobStorageHostingExtensions.cs#L28)

```csharp
public static ISiloBuilder AddAzureBlobJournalStorage(this ISiloBuilder builder, Action<AzureBlobJournalStorageOptions>? configure)
```

Configures Azure Blob Storage as the journal storage provider.

### Parameters

- `builder` (`ISiloBuilder`): The silo builder.
- `configure` (`Action<AzureBlobJournalStorageOptions>`): The delegate used to configure the journal storage provider.

### Returns

The silo builder.

### Exceptions

- `System.ArgumentNullException`: `builder` is `null`.

## AddAzureBlobJournalStorage(ISiloBuilder, string, Action&lt;AzureBlobJournalStorageOptions&gt;) {#addazureblobjournalstorage-this-orleans-hosting-isilobuilder-string-system-actio-9aa06f65}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.azurestorage/orleans.durable.journaling.azureblobstoragehostingextensions/methods/addazureblobjournalstorage-this-orleans-hosting-isilobuilder-string-system-actio-9aa06f65/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Azure/Orleans.Durable.AzureStorage/Journaling/AzureBlobStorageHostingExtensions.cs#L48-L63)

```csharp
public static ISiloBuilder AddAzureBlobJournalStorage(this ISiloBuilder builder, string name, Action<AzureBlobJournalStorageOptions>? configure)
```

Configures a named Azure Blob Storage journal provider.

### Parameters

- `builder` (`ISiloBuilder`): The silo builder.
- `name` (`string`): The provider name.
- `configure` (`Action<AzureBlobJournalStorageOptions>`): The delegate used to configure this provider, or `null` to use separately configured options.

### Returns

The silo builder.

### Exceptions

- `System.ArgumentNullException`: `builder` is `null`.
- `System.ArgumentException`: `name` is empty or whitespace.
