Browse Source

docs: add missing eventBus resolution in mixed handlers snippet

pull/25202/head
maliming 2 months ago
parent
commit
418ace5e11
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 1
      docs/en/Community-Articles/2026-03-23-Dynamic-Events-in-ABP/POST.md

1
docs/en/Community-Articles/2026-03-23-Dynamic-Events-in-ABP/POST.md

@ -127,6 +127,7 @@ public class PartnerOrderHandler : IDistributedEventHandler<DynamicEventData>
Typed and dynamic handlers coexist naturally. When both are registered for the same event name, **both are triggered** — the framework automatically converts the data to the appropriate format for each handler.
```csharp
var eventBus = context.ServiceProvider.GetRequiredService<IDistributedEventBus>();
var scopeFactory = context.ServiceProvider.GetRequiredService<IServiceScopeFactory>();
// Typed handler — receives OrderPlacedEto

Loading…
Cancel
Save