---
title: "Asynchronous connect"
description: "Guide to connecting with the Aerospike C# AsyncClient, covering cluster discovery and network disturbance handling."
---

# Asynchronous connect

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

Use the Aerospike C# client to connect to the Aerospike server by creating an `AsyncClient` object and providing the IP address and port of one node in a cluster. In a cluster, this IP address is used to initiate contact to the cluster, and then the client can discover all cluster nodes and cluster status.

```cs
AsyncClient client = new AsyncClient("127.0.0.1", 3000);
```

The `AsyncClient` constructor creates a maintenance thread to periodically ping nodes for cluster status.

On a network disturbance where the client can no longer reach any node, the seed nodes (and the discovered friend nodes on initial connection) are pinged until client-server connection is reestablished.

The `AsyncClient` instance is thread-safe and can be used concurrently by multiple threads. Each `get/set` call is a blocking, synchronous network call to Aerospike. Non-blocking connections are cached in a connection pool for each server node.