18 references to DefaultKeyName
Aspire.Milvus.Client.Tests (18)
AspireMilvusExtensionTests.cs (18)
36new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString)
41builder.AddKeyedMilvusClient(DefaultKeyName);
45builder.AddMilvusClient(DefaultKeyName);
50host.Services.GetRequiredKeyedService<MilvusClient>(DefaultKeyName) :
65builder.AddKeyedMilvusClient(DefaultKeyName, settings => { settings.Endpoint = new Uri("http://localhost:19530"); settings.Key = DefaultApiKey; });
69builder.AddMilvusClient(DefaultKeyName, settings => { settings.Endpoint = new Uri("http://localhost:19530"); settings.Key = DefaultApiKey; });
74host.Services.GetRequiredKeyedService<MilvusClient>(DefaultKeyName) :
90new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString)
95builder.AddKeyedMilvusClient(DefaultKeyName);
99builder.AddMilvusClient(DefaultKeyName);
104host.Services.GetRequiredKeyedService<MilvusClient>(DefaultKeyName) :
118var key = useKeyed ? DefaultKeyName : null;
121new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString)
126builder.AddKeyedMilvusClient(DefaultKeyName);
130builder.AddMilvusClient(DefaultKeyName);
139var healthCheckName = useKeyed ? $"Milvus_{DefaultKeyName}" : "Milvus";
153builder.AddKeyedMilvusClient(DefaultKeyName, settings =>
160builder.AddMilvusClient(DefaultKeyName, settings =>