Table of Contents

Interface ISenderRateLimiter

Namespace
Signal.Application.Pipeline
Assembly
Signal.Application.dll

Decides whether a sender may send another message. Replace it for distributed or custom limits.

public interface ISenderRateLimiter

Methods

TryAcquire(string)

Consumes one permit for the sender.

bool TryAcquire(string senderKey)

Parameters

senderKey string

The sender identifier (phone number or UUID).

Returns

bool

true if the message may be processed.