> ## 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.

# ISupportsPollEvents

> A source the host asks what changed since the last poll stopped.

```csharp
public interface ISupportsPollEvents
```

## Methods

### PollAsync()

```csharp
Task<Polled> PollAsync(ConnectionContext context, string? position, CancellationToken cancellationToken)
```

Reads what happened after `position`. On a queue, the position is the last message handled, which the connector removes before reading the next.

#### Parameters

**context** `ConnectionContext` *required*

**position** `string` *required*

Where the last poll stopped, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) at the start.

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task<Polled>`


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