# DurableTaskHostingExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.hosting.durabletaskhostingextensions/)

## AddDurableTasks(IClientBuilder) {#adddurabletasks-this-orleans-hosting-iclientbuilder-734c6b15}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.hosting.durabletaskhostingextensions/methods/adddurabletasks-this-orleans-hosting-iclientbuilder-734c6b15/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/DurableTaskHostingExtensions.cs#L24-L31)

```csharp
public static IClientBuilder AddDurableTasks(this IClientBuilder clientBuilder)
```

Adds the client-side durable grain RPC adapter.

### Parameters

- `clientBuilder` (`IClientBuilder`)

## AddDurableTasks(ISiloBuilder, Action&lt;DurableTaskOptions&gt;) {#adddurabletasks-this-orleans-hosting-isilobuilder-system-action-orleans-configur-bd288e06}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.hosting.durabletaskhostingextensions/methods/adddurabletasks-this-orleans-hosting-isilobuilder-system-action-orleans-configur-bd288e06/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/DurableTaskHostingExtensions.cs#L47-L93)

```csharp
public static ISiloBuilder AddDurableTasks(this ISiloBuilder siloBuilder, Action<DurableTaskOptions>? configureOptions = null)
```

Adds the silo-side durable grain RPC runtime over Orleans Messaging.

### Parameters

- `siloBuilder` (`ISiloBuilder`)
- `configureOptions` (`Action<DurableTaskOptions>`)
