C# SDK for Milvus.
Visual Studio
Visual Studio 2019 or higher
NuGet
IO.Milvus is delivered via NuGet package manager. You can find the package here: https://www.nuget.org/packages/IO.Milvus/
Framework
.net 5.0 or .net 6.0
Install-Package IO.Milvus -Version 2.0.0-alpha.2
Or
<PackageReference Include="IO.Milvus" Version="2.0.0-alpha.2" />
Connect to a Milvus server.
var milvusClient = new MilvusServiceClient(
ConnectParam.Create(
host: "192.168.100.139",
port: 19531));
Disconnect from a Milvus server.
milvusClient.Close();
Please refer to Test Project for more examples.
You can find code that auto generated by grpc tools in namespace of IO.Milvus.Grpc,then use auto-generated serviceclient to connect server and send request.
var defualtClient = MilvusServiceClient.CreateGrpcDefaultClient(
ConnectParam.Create(
host: "192.168.100.139",
port: 19531));
If you want to use io.milvus in asp.net core, you can take a look at this doc.
Use namespace of IO.Milvus.Grpc with DI.