MilvusBuilderExtensions.WithAttu<T> Method

Definition

Adds an administration and development platform for Milvus to the application model using Attu.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithAttu<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Milvus.AttuResource>>? configureContainer = default, string? containerName = default) where T : Aspire.Hosting.Milvus.MilvusServerResource;

Type Parameters

T

Parameters

builder
IResourceBuilder<T>

The Milvus server resource builder.

configureContainer
Action<IResourceBuilder<AttuResource>>

Configuration callback for Attu container resource.

containerName
String

The name of the container (Optional).

Returns

A reference to the IResourceBuilder<T>.

Examples

Use in application host with a Milvus resource

var builder = DistributedApplication.CreateBuilder(args);

var milvus = builder.AddMilvus("milvus")
  .WithAttu();
var api = builder.AddProject<Projects.Api>("api")
  .WithReference(milvus);

builder.Build().Run();

Remarks

This version of the package defaults to the tag of the container image.

Applies to