-
-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-v1' into update-eventstores-eventstore
- Loading branch information
Showing
31 changed files
with
446 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: pull-requests | ||
|
||
on: | ||
push: | ||
branches: [ develop-v1 ] | ||
pull_request: | ||
branches: [ develop-v1 ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pipeline: | ||
uses: ./.github/workflows/pipeline.yaml | ||
with: | ||
version: "1.1.0-pr${{ github.event.number }}-b${{ github.run_number }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: [ release-v1 ] | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
pipeline: | ||
uses: ./.github/workflows/pipeline.yaml | ||
with: | ||
bake-convention: 'Release' | ||
environment: 'release' | ||
version: "1.1.0" | ||
secrets: | ||
nuget-api-key: ${{ secrets.NUGET_APIKEY }} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
7 changes: 4 additions & 3 deletions
7
.github/workflows/test-reports.yml → .github/workflows/test-reports.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: Event Naming Strategies | ||
--- | ||
|
||
# Event Naming Strategies | ||
|
||
Event classes with the same name but in different namespaces can potentially collide, when EventFlow just handles the classname. This can potentially lead to errors as EventFlow doesn't know which event class it should rehydrate and apply to. | ||
In order to avoid this, EventFlow incorporates the concept of event naming strategies that can be used to uniquely identify each event class. | ||
|
||
|
||
## Built-In Strategies | ||
|
||
There are a few naming strategies already available in EventFlow out-of-the-box: | ||
|
||
- `DefaultStrategy`: The **default behaviour**, if not overwritten explicitly. This strategy will use the className or (if provided) the value coming from an `[EventVersion]` attribute. This matches the implicit naming strategy from previous EventFlow versions. | ||
|
||
- `NamespaceAndNameStrategy`: This strategy uses both the namespace and the class name or (if provided) the value coming from an `[EventVersion]` attribute to uniquely identify an event class. | ||
- `NamespaceAndClassNameStrategy`: This strategy uses both the namespace and the class name to uniquely identify an event class. Any name value coming from an `[EventVersion]` attribute will be ignored for internal naming. | ||
|
||
## Custom Strategies | ||
|
||
All Event Naming Strategies implement the `IEventNamingStrategy` interface.: | ||
|
||
```csharp | ||
public interface IEventNamingStrategy | ||
{ | ||
public string CreateEventName(int version, Type eventType, string name); | ||
} | ||
``` | ||
|
||
One can come up with their own strategy by implementing this interface and registering it with EventFlow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.