# AzureBlobLeaseProviderOptions.ConfigureBlobServiceClient(Func&lt;Task&lt;BlobServiceClient&gt;&gt;)

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

[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>>`)
