Class SqlEndpoint

Namespace: redb.Route.Sql
Assembly: redb.Route.Sql.dll

SQL endpoint. Creates a consumer (polling) or producer (execute/procedure)
based on the in options.
The path part of the URI is the SQL query or stored procedure name.

public class SqlEndpoint : EndpointBase<SqlEndpointOptions>, IEndpoint, IEndpointStatistics

Inheritance

Object→SqlEndpointOptions}→SqlEndpoint

Implements

Properties

QueryOrProcedure

The SQL query or procedure name from the URI path.

public string QueryOrProcedure { get; }

Methods

CreateConsumer(IProcessor)

Creates a consumer for receiving messages from this endpoint.

public override IConsumer CreateConsumer(IProcessor processor)

CreateProducer()

Creates a producer for sending messages to this endpoint.

public override IProducer CreateProducer()

Start(CancellationToken)

Resolves a data source whose factory is registered already, so dataSource=redb on a context without redb, or

public override Task Start(CancellationToken ct = default)

Constructors