Partilhar via


KafkaBuilderExtensions.WithKafkaUI Method

Definition

Adds a Kafka UI container to the application.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.KafkaServerResource> WithKafkaUI (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.KafkaServerResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.KafkaUIContainerResource>>? configureContainer = default, string? containerName = default);
static member WithKafkaUI : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.KafkaServerResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.KafkaUIContainerResource>> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.KafkaServerResource>
<Extension()>
Public Function WithKafkaUI (builder As IResourceBuilder(Of KafkaServerResource), Optional configureContainer As Action(Of IResourceBuilder(Of KafkaUIContainerResource)) = Nothing, Optional containerName As String = Nothing) As IResourceBuilder(Of KafkaServerResource)

Parameters

builder
IResourceBuilder<KafkaServerResource>

The Kafka server resource builder.

configureContainer
Action<IResourceBuilder<KafkaUIContainerResource>>

Configuration callback for KafkaUI container resource.

containerName
String

The name of the container (Optional).

Returns

A reference to the IResourceBuilder<T>.

Remarks

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

Applies to