# AzureBlobLeaseProviderOptions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/)

## ConfigureBlobServiceClient(Func&lt;Task&lt;BlobServiceClient&gt;&gt;) {#configureblobserviceclient-system-func-system-threading-tasks-task-azure-storage-d43bb2fd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/methods/configureblobserviceclient-system-func-system-threading-tasks-task-azure-storage-d43bb2fd/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Options/AzureBlobLeaseProviderOptions.cs#L72-L73)

```csharp
[System.Obsolete(Set the BlobServiceClient property directly.)]
public void ConfigureBlobServiceClient(Func<Task<BlobServiceClient>> createClientCallback)
```

Configures the [AzureBlobLeaseProviderOptions](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/) using the provided callback.

### Parameters

- `createClientCallback` (`Func<Task<BlobServiceClient>>`)

## ConfigureBlobServiceClient(Uri) {#configureblobserviceclient-system-uri-847de3f4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/methods/configureblobserviceclient-system-uri-847de3f4/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Options/AzureBlobLeaseProviderOptions.cs#L63-L64)

```csharp
[System.Obsolete(Set the BlobServiceClient property directly.)]
public void ConfigureBlobServiceClient(Uri serviceUri)
```

Configures the [AzureBlobLeaseProviderOptions](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/) using an authenticated service URI.

### Parameters

- `serviceUri` (`Uri`)

## ConfigureBlobServiceClient(Uri, AzureSasCredential) {#configureblobserviceclient-system-uri-azure-azuresascredential-c609bafc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/methods/configureblobserviceclient-system-uri-azure-azuresascredential-c609bafc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Options/AzureBlobLeaseProviderOptions.cs#L90-L91)

```csharp
[System.Obsolete(Set the BlobServiceClient property directly.)]
public void ConfigureBlobServiceClient(Uri serviceUri, AzureSasCredential azureSasCredential)
```

Configures the [AzureBlobLeaseProviderOptions](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/) using an authenticated service URI and a `Azure.AzureSasCredential`.

### Parameters

- `serviceUri` (`Uri`)
- `azureSasCredential` (`AzureSasCredential`)

## ConfigureBlobServiceClient(Uri, StorageSharedKeyCredential) {#configureblobserviceclient-system-uri-azure-storage-storagesharedkeycredential-ec850f85}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/methods/configureblobserviceclient-system-uri-azure-storage-storagesharedkeycredential-ec850f85/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Options/AzureBlobLeaseProviderOptions.cs#L99-L100)

```csharp
[System.Obsolete(Set the BlobServiceClient property directly.)]
public void ConfigureBlobServiceClient(Uri serviceUri, StorageSharedKeyCredential sharedKeyCredential)
```

Configures the [AzureBlobLeaseProviderOptions](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/) using an authenticated service URI and a `Azure.Storage.StorageSharedKeyCredential`.

### Parameters

- `serviceUri` (`Uri`)
- `sharedKeyCredential` (`StorageSharedKeyCredential`)

## ConfigureBlobServiceClient(Uri, TokenCredential) {#configureblobserviceclient-system-uri-azure-core-tokencredential-83dd7ca6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/methods/configureblobserviceclient-system-uri-azure-core-tokencredential-83dd7ca6/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Options/AzureBlobLeaseProviderOptions.cs#L81-L82)

```csharp
[System.Obsolete(Set the BlobServiceClient property directly.)]
public void ConfigureBlobServiceClient(Uri serviceUri, TokenCredential tokenCredential)
```

Configures the [AzureBlobLeaseProviderOptions](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/) using an authenticated service URI and a `Azure.Core.TokenCredential`.

### Parameters

- `serviceUri` (`Uri`)
- `tokenCredential` (`TokenCredential`)

## ConfigureBlobServiceClient(string) {#configureblobserviceclient-string-309cd07d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/methods/configureblobserviceclient-string-309cd07d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Options/AzureBlobLeaseProviderOptions.cs#L54-L55)

```csharp
[System.Obsolete(Set the BlobServiceClient property directly.)]
public void ConfigureBlobServiceClient(string connectionString)
```

Configures the [AzureBlobLeaseProviderOptions](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azureblobleaseprovideroptions/) using a connection string.

### Parameters

- `connectionString` (`string`)
