Skip to content
Docs Try Aspire

KafkaServerResource Properties

Class Properties 5 members
A resource that represents a Kafka broker.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string expression for the Kafka broker.
public ReferenceExpression ConnectionStringExpression { get; }
Host Section titled Host EndpointReferenceExpression
Gets the host endpoint reference for the primary endpoint.
public EndpointReferenceExpression Host { get; }
InternalEndpoint Section titled InternalEndpoint EndpointReference
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; }
Port Section titled Port EndpointReferenceExpression
Gets the port endpoint reference for the primary endpoint.
public EndpointReferenceExpression Port { get; }
PrimaryEndpoint Section titled PrimaryEndpoint EndpointReference
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 host process, use KafkaServerResource.InternalEndpoint.
public EndpointReference PrimaryEndpoint { get; }