Skip to content

PROCESSINGS: EventV2ProcessingService - Loop Detection#548

Merged
cjdutoit merged 14 commits into
mainfrom
users/cjdutoit/processings-eventv2-loop-detection
Jun 22, 2026
Merged

PROCESSINGS: EventV2ProcessingService - Loop Detection#548
cjdutoit merged 14 commits into
mainfrom
users/cjdutoit/processings-eventv2-loop-detection

Conversation

@cjdutoit

Copy link
Copy Markdown
Collaborator

Adds loop detection logic to the EventV2 processing service.

  • Added RetrieveEventV2CountBySignatureAsync(EventV2, CancellationToken) pass-through delegating to the EventV2 foundation, with full exception suite (dependency validation, dependency, timeout, cancellation, service)
  • Added IsLoopDetectedAsync(EventV2, CancellationToken) — reads LoopDetection config, returns false when disabled (fail-open), returns count > config.Threshold otherwise; call order enforced via MockSequence in the logic test
  • Injected IConfigurationBroker into EventV2ProcessingService (broker — excluded from the 2–3 service-dependency count)
  • Added ReturningIntFunction and ReturningBoolFunction delegate types with corresponding TryCatch overloads in the exceptions partial

closes #547

@cjdutoit cjdutoit merged commit 8f1da4f into main Jun 22, 2026
5 checks passed
@cjdutoit cjdutoit deleted the users/cjdutoit/processings-eventv2-loop-detection branch June 22, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PROCESSINGS: EventV2ProcessingService - Loop Detection

2 participants