KafkaServerResource
Class net10.0
A resource that represents a Kafka broker.
namespace Aspire.Hosting;
public class KafkaServerResource : Aspire.Hosting.ApplicationModel.ContainerResource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithEnvironment, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ContainerResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithEnvironmentIValueProviderIValueWithReferences
6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the Kafka broker.
HostgetEndpointReferenceExpression Gets the host endpoint reference for the primary endpoint.
InternalEndpointgetEndpointReference 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. PortgetEndpointReferenceExpression Gets the port endpoint reference for the primary endpoint.
PrimaryEndpointgetEndpointReference 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.