# AzureTableStorageHostingExtensions Methods

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

## AddAzureTableJournalStorage(ISiloBuilder) {#addazuretablejournalstorage-this-orleans-hosting-isilobuilder-423ddb58}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.azurestorage/orleans.durable.journaling.azuretablestoragehostingextensions/methods/addazuretablejournalstorage-this-orleans-hosting-isilobuilder-423ddb58/)

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

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

Configures Azure Table Storage as the journal storage provider.

### Parameters

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

### Returns

The silo builder.

### Exceptions

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

## AddAzureTableJournalStorage(ISiloBuilder, Action&lt;AzureTableJournalStorageOptions&gt;) {#addazuretablejournalstorage-this-orleans-hosting-isilobuilder-system-action-orle-2c08e74c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.azurestorage/orleans.durable.journaling.azuretablestoragehostingextensions/methods/addazuretablejournalstorage-this-orleans-hosting-isilobuilder-system-action-orle-2c08e74c/)

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

```csharp
public static ISiloBuilder AddAzureTableJournalStorage(this ISiloBuilder builder, Action<AzureTableJournalStorageOptions>? configure)
```

Configures Azure Table Storage as the journal storage provider.

### Parameters

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

### Returns

The silo builder.

### Exceptions

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

## AddAzureTableJournalStorage(ISiloBuilder, string, Action&lt;AzureTableJournalStorageOptions&gt;) {#addazuretablejournalstorage-this-orleans-hosting-isilobuilder-string-system-acti-5b829622}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.azurestorage/orleans.durable.journaling.azuretablestoragehostingextensions/methods/addazuretablejournalstorage-this-orleans-hosting-isilobuilder-string-system-acti-5b829622/)

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

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

Configures a named Azure Table Storage journal provider.

### Parameters

- `builder` (`ISiloBuilder`): The silo builder.
- `name` (`string`): The provider name.
- `configure` (`Action<AzureTableJournalStorageOptions>`): 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.
