Class ComponentBase
Base class for components. Provides scheme registration and endpoint creation contract.
Components MAY hold long-lived resources (connection pools, broker sessions);
override to release them when shuts down.
public abstract class ComponentBase : IComponent, IAsyncDisposable
Inheritance
Implements
Derived
AmqpComponentAs2ComponentAs4ComponentAzureServiceBusComponentBeanComponentCacheComponentControlBusComponentCronComponentDirectComponentDirectVmComponentElasticsearchComponentEmbedComponentExecComponentFileComponentFtpComponentGrpcComponentHttpComponentHttpsComponentIbmMqComponentImapComponentKafkaComponentKnowledgeComponentLdapComponentLlmComponentLogComponentMcpComponentMockComponentMqttComponentPop3ComponentQuartzTimerComponentRabbitMQComponentRedisComponentS3ComponentSedaComponentSftpComponentSignalRComponentSmtpComponentSnsComponentSoapComponentSqlComponentSqsComponentSttComponentTcpComponentTelegramComponentTimerComponentTsakDlqComponentValidatorComponentVmComponentWsComponentWssComponentXsltComponent
Properties
AlternateSchemes
Optional alternate scheme aliases (e.g., "es" for "elasticsearch").
public virtual IReadOnlyList<string> AlternateSchemes { get; }
Context
Route context that owns this component. Set automatically by .
public IRouteContext? Context { get; }
PathIsText
The path part of this component's URIs is a text body (sql: the query). The structured
public virtual bool PathIsText { get; }
Scheme
The URI scheme this component handles (e.g., "kafka", "rabbitmq").
public abstract string Scheme { get; }
StructuredPathSynonym
Optional one-line path synonym for the structured XML form:
public virtual string? StructuredPathSynonym { get; }
Methods
CreateEndpoint(EndpointUri)
Creates an endpoint from a parsed URI.
public abstract IEndpoint CreateEndpoint(EndpointUri uri)
DisposeAsync()
Releases component-owned long-lived resources. Default implementation is a no-op.
public virtual ValueTask DisposeAsync()