Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializing/Desierializing Events by their name #25

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SegoMarko
Copy link
Contributor

  • Removed saving full name of the types $type in the payload in Event Store.
  • Added Converter between the Event type and it's name.
  • Every Event needs to have a unique name in all scanned assemblies with Events.

Marko Sego added 3 commits July 3, 2024 13:45
…Added Converter between the Event type and it's name. Every Event needs to have a unique name in all scanned assemblies with Events.
@SegoMarko
Copy link
Contributor Author

All project using this new version will have to use one of two AddEventStoreRepository extension methods on IServiceCollection. The intended way of using would be services.AddEventStoreRepository(new[] { typeof(Domain.Domain).Assembly });. Where Domain.Domain is a class in the project where all IDomainEvent implementations reside (or more than one if necessary). Except, potentially required upgrade in client projects of package Microsoft.Extensions.DependencyInjection.Abstractions, no other changes are necessary.

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.

None yet

1 participant