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

# IConnector

> What every connector must do.

```csharp
public interface IConnector
```

## Methods

### CheckConnectionAsync()

```csharp
Task<ConnectionCheck> CheckConnectionAsync(ConnectionContext context, CancellationToken cancellationToken)
```

Checks the connection, naming anything that stops the host using it.

#### Parameters

**context** `ConnectionContext` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task<ConnectionCheck>`

### TenantIdAsync()

```csharp
Task<string?> TenantIdAsync(ConnectionContext context, CancellationToken cancellationToken)
```

Reads the vendor's id for the tenant the connection reaches, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the vendor has none.

#### Parameters

**context** `ConnectionContext` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task<string>`


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