3 instantiations of MilvusServerResource
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
52var milvus = new MilvusServerResource(name, apiKeyParameter);
Aspire.Hosting.Milvus.Tests (2)
MilvusPublicApiTests.cs (2)
149var action = () => new MilvusServerResource(name, apiKey); 161var action = () => new MilvusServerResource(name, apiKey);
25 references to MilvusServerResource
Aspire.Hosting.Milvus (18)
MilvusBuilderExtensions.cs (13)
42public static IResourceBuilder<MilvusServerResource> AddMilvus(this IDistributedApplicationBuilder builder, 52var milvus = new MilvusServerResource(name, apiKeyParameter); 56.WithHttpEndpoint(port: grpcPort, targetPort: MilvusPortGrpc, name: MilvusServerResource.PrimaryEndpointName) 57.WithEndpoint(MilvusServerResource.PrimaryEndpointName, endpoint => 94public static IResourceBuilder<MilvusDatabaseResource> AddDatabase(this IResourceBuilder<MilvusServerResource> builder, [ResourceName] string name, string? databaseName = null) 130public static IResourceBuilder<T> WithAttu<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<AttuResource>>? configureContainer = null, string? containerName = null) where T : MilvusServerResource 156public static IResourceBuilder<MilvusServerResource> WithDataVolume(this IResourceBuilder<MilvusServerResource> builder, string? name = null, bool isReadOnly = false) 169public static IResourceBuilder<MilvusServerResource> WithDataBindMount(this IResourceBuilder<MilvusServerResource> builder, string source, bool isReadOnly = false) 182public static IResourceBuilder<MilvusServerResource> WithConfigurationBindMount(this IResourceBuilder<MilvusServerResource> builder, string configurationFilePath) 189private static void ConfigureAttuContainer(EnvironmentCallbackContext context, MilvusServerResource resource)
MilvusDatabaseResource.cs (4)
9/// A resource that represents a Milvus database. This is a child resource of a <see cref="MilvusServerResource"/>. 14public class MilvusDatabaseResource(string name, string databaseName, MilvusServerResource parent) : Resource(name), IResourceWithParent<MilvusServerResource>, IResourceWithConnectionString 19public MilvusServerResource Parent { get; } = parent;
MilvusServerResource.cs (1)
16/// Initializes a new instance of the <see cref="MilvusServerResource"/> class.
Aspire.Hosting.Milvus.Tests (7)
AddMilvusTests.cs (2)
193var milvusResource = Assert.Single(appModel.Resources.OfType<MilvusServerResource>());
MilvusPublicApiTests.cs (5)
57IResourceBuilder<MilvusServerResource> builder = null!; 69IResourceBuilder<MilvusServerResource> builder = null!; 80IResourceBuilder<MilvusServerResource> builder = null!; 91IResourceBuilder<MilvusServerResource> builder = null!; 119IResourceBuilder<MilvusServerResource> builder = null!;