Class Pop3Consumer
POP3 consumer — fetches email messages via MailKit Pop3Client.
POP3 is a simple polling protocol: connect, list messages, download, optionally delete.
Does not support IDLE mode or folders.
public class Pop3Consumer : DrainableConsumer, IConsumer
Inheritance
Implements
Inherited Members
DrainableConsumer.AwaitRunTask(),DrainableConsumer.ConsumerEndpoint,DrainableConsumer.ConsumerName,DrainableConsumer.DecrementInflight(),DrainableConsumer.Endpoint,DrainableConsumer.IncrementInflight(),DrainableConsumer.Logger,DrainableConsumer.OnStarting(CancellationToken),DrainableConsumer.OnStopAccepting(),DrainableConsumer.OnStopped(),DrainableConsumer.Processor,DrainableConsumer.ProcessWithTracking(IExchange, TransportSpan, CancellationToken),DrainableConsumer.ProcessWithTracking(IExchange, CancellationToken),DrainableConsumer.RunAsync(CancellationToken, CancellationToken),DrainableConsumer.Start(CancellationToken),DrainableConsumer.Stop(CancellationToken)
Properties
ConsumerEndpoint
The endpoint this consumer is attached to.
protected override IEndpoint ConsumerEndpoint { get; }
ConsumerName
Display name for logging (e.g. "kafka:orders", "file:/tmp/in").
protected override string ConsumerName { get; }
Methods
OnStarting(CancellationToken)
Called during Start() before RunAsync. Override for async setup (topology, subscriptions).
protected override Task OnStarting(CancellationToken ct)
RunAsync(CancellationToken, CancellationToken)
Main consumer loop. Receives pollCt (stop accepting new work)
protected override Task RunAsync(CancellationToken pollCt, CancellationToken processingCt)
Constructors
Pop3Consumer(Pop3Endpoint, IProcessor, MailEndpointOptions)
Creates a POP3 consumer.