From 066c16ef12f73c1d9d66c613607c694ca21df8af Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Mon, 18 Dec 2023 17:47:34 -0500 Subject: [PATCH 1/2] Use valid signature for event handler registration --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09b79a1f..ab74e927 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,8 @@ Then, you can use on of the following methods to register the required services ```csharp // Method 1: Register only selected domain event handlers services.AddEventPropagationSubscriber() - .AddDomainEventHandler() - .AddDomainEventHandler(); + .AddDomainEventHandler() + .AddDomainEventHandler(); // Method 2: Register all domain event handlers from a given assembly services.AddEventPropagationSubscriber() From e39bab1f14fdbfca988db5f1eeab3bbf49280cf0 Mon Sep 17 00:00:00 2001 From: Mathieu Gamache Date: Tue, 19 Dec 2023 14:26:08 -0500 Subject: [PATCH 2/2] Update readme example because 1 event can only have 1 handler. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab74e927..059115fe 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Then, you can use on of the following methods to register the required services // Method 1: Register only selected domain event handlers services.AddEventPropagationSubscriber() .AddDomainEventHandler() - .AddDomainEventHandler(); + .AddDomainEventHandler(); // Method 2: Register all domain event handlers from a given assembly services.AddEventPropagationSubscriber()