MilvusClientV2
The Milvus gRPC client (V2).
public sealed partial class MilvusClientV2 : IDisposable
All operations take a request object (DTO) and return a typed response, following the same pattern as the Java, C++, and Rust Milvus V2 SDKs. The client connects lazily: connection (and authentication) happens on the first RPC call, or when ConnectAsync is called explicitly. Once constructed, RPC methods may be called concurrently on the same instance.
public MilvusClientV2(ConnectConfig config)
Creates a new MilvusClientV2, connecting to the given Milvus instance. Dispose the client with Dispose to release the underlying gRPC channel.
PARAMETERS:
config(ConnectConfig) -The connection parameters, mirroring the
ConnectParamof the C++ SDK and theConnectConfigof the Java SDK. See ConnectConfig.
Example
using Milvus.Client.V2;
using Milvus.Client.V2.Types;
using var client = new MilvusClientV2(new ConnectConfig
{
Uri = "localhost:19530",
Username = "root",
Password = "Milvus"
});
await client.ConnectAsync();