# ClusterClientSqsStreamConfigurator.UseDataAdapter(Func&lt;IServiceProvider, string, ISQSDataAdapter&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.sqs/orleans.hosting.clusterclientsqsstreamconfigurator/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.sqs/orleans.hosting.clusterclientsqsstreamconfigurator/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/AWS/Orleans.Streaming.SQS/Streams/SQSStreamBuilder.cs#L131-L132)

```csharp
public ClusterClientSqsStreamConfigurator UseDataAdapter(Func<IServiceProvider, string, ISQSDataAdapter> factory)
```

Configures the data adapter used to convert between Orleans stream batches and SQS messages.

### Parameters

- `factory` (`Func<IServiceProvider, string, ISQSDataAdapter>`): The factory invoked with the service provider and stream provider name to create the data adapter.

### Returns

The stream provider configurator.
