Skip to content
DocsTry Aspire
DocsTry

KafkaServerResource Properties

ClassProperties5 members
A resource that represents a Kafka broker.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string expression for the Kafka broker.
public ReferenceExpression ConnectionStringExpression { get; }
HostSection titled HostEndpointReferenceExpression
Gets the host endpoint reference for the primary endpoint.
public EndpointReferenceExpression Host { get; }
InternalEndpointSection titled InternalEndpointEndpointReference
Gets the internal endpoint for the Kafka broker. This endpoint is used for container to broker communication. To connect to the Kafka broker from a host process, use KafkaServerResource.PrimaryEndpoint.
public EndpointReference InternalEndpoint { get; }
PortSection titled PortEndpointReferenceExpression
Gets the port endpoint reference for the primary endpoint.
public EndpointReferenceExpression Port { get; }
PrimaryEndpointSection titled PrimaryEndpointEndpointReference
Gets the primary endpoint for the Kafka broker. This endpoint is used for host processes to Kafka broker communication. To connect to the Kafka broker from a container, use KafkaServerResource.InternalEndpoint.
public EndpointReference PrimaryEndpoint { get; }