Class LdapEndpoint

Namespace: redb.Route.Ldap
Assembly: redb.Route.Ldap.dll

LDAP endpoint. Parses the operation type and base DN from the URI path.
Manages a connection pool for LDAP operations.

URI path format: OPERATION:baseDn (e.g. SEARCH:dc=example,dc=com).

public sealed class LdapEndpoint : EndpointBase<LdapEndpointOptions>, IEndpoint, IEndpointStatistics, IDisposable

Inheritance

Object→LdapEndpointOptions}→LdapEndpoint

Implements

Properties

BaseDn

Base DN or target DN parsed from the URI path.

public string BaseDn { get; }

OperationType

Parsed LDAP operation type.

public LdapOperationType OperationType { 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()

Dispose()

Disposes all pooled connections and the semaphore.

public void Dispose()

Stop(CancellationToken)

Stops the endpoint lifecycle.

public override Task Stop(CancellationToken ct = default)

Constructors