# AzureQueueOptions Methods

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

## ConfigureQueueServiceClient(Func&lt;Task&lt;QueueServiceClient&gt;&gt;) {#configurequeueserviceclient-system-func-system-threading-tasks-task-azure-storag-a93e2e48}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azurequeueoptions/methods/configurequeueserviceclient-system-func-system-threading-tasks-task-azure-storag-a93e2e48/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/AzureQueue/AzureQueueStreamOptions.cs#L85-L86)

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

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

### Parameters

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

## ConfigureQueueServiceClient(Uri) {#configurequeueserviceclient-system-uri-5fe9ed39}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azurequeueoptions/methods/configurequeueserviceclient-system-uri-5fe9ed39/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/AzureQueue/AzureQueueStreamOptions.cs#L75-L77)

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

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

### Parameters

- `serviceUri` (`Uri`)

## ConfigureQueueServiceClient(Uri, AzureSasCredential) {#configurequeueserviceclient-system-uri-azure-azuresascredential-f42895af}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azurequeueoptions/methods/configurequeueserviceclient-system-uri-azure-azuresascredential-f42895af/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/AzureQueue/AzureQueueStreamOptions.cs#L105-L108)

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

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

### Parameters

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

## ConfigureQueueServiceClient(Uri, StorageSharedKeyCredential) {#configurequeueserviceclient-system-uri-azure-storage-storagesharedkeycredential-e60cbf58}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azurequeueoptions/methods/configurequeueserviceclient-system-uri-azure-storage-storagesharedkeycredential-e60cbf58/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/AzureQueue/AzureQueueStreamOptions.cs#L116-L119)

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

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

### Parameters

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

## ConfigureQueueServiceClient(Uri, TokenCredential) {#configurequeueserviceclient-system-uri-azure-core-tokencredential-451b80d1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azurequeueoptions/methods/configurequeueserviceclient-system-uri-azure-core-tokencredential-451b80d1/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/AzureQueue/AzureQueueStreamOptions.cs#L94-L97)

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

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

### Parameters

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

## ConfigureQueueServiceClient(string) {#configurequeueserviceclient-string-7818175a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.configuration.azurequeueoptions/methods/configurequeueserviceclient-string-7818175a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/AzureQueue/AzureQueueStreamOptions.cs#L65-L67)

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

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

### Parameters

- `connectionString` (`string`)
