> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ISupportsWorkerReads

> Reads the workers of the worker object a connector declares.

```csharp
public interface ISupportsWorkerReads
```

## Methods

### GetWorkersAsync()

```csharp
Task<IReadOnlyList<SourceWorker>> GetWorkersAsync(ConnectionContext context, IReadOnlyCollection<string> sourceIds, CancellationToken cancellationToken)
```

Reads the workers with the given ids that the source holds, and no others.

#### Parameters

**context** `ConnectionContext` *required*

**sourceIds** `IReadOnlyCollection\<string\>` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task<IReadOnlyList<SourceWorker>>`

### ListWorkersAsync()

```csharp
Task<Page<SourceWorker>> ListWorkersAsync(ConnectionContext context, PageRequest page, CancellationToken cancellationToken)
```

Lists one page of workers.

#### Parameters

**context** `ConnectionContext` *required*

**page** `PageRequest` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task<Page<SourceWorker>>`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.