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

Merge 15-branch-protection-failed-commits-with-error-tests-fail into main #16

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>EventSourcing, Events, EventStore</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>1.0.0-beta-5</PackageVersion>
<PackageVersion>1.0.0-beta-6</PackageVersion>
<PackageReleaseNotes>Braking Changes - New Mapper Logic</PackageReleaseNotes>
<RootNamespace>EventSourcing</RootNamespace>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.0.0-beta004</Version>
<Version>1.0.0-beta006</Version>
<Title>EventSourcing.Publishers.RabbitMQ</Title>
<Authors>Andreas Naumann</Authors>
<Description>Extend the event sourcing system with RabbitMQ.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.0.0-beta004</Version>
<Version>1.0.0-beta006</Version>
<Title>EventSourcing.Publishers</Title>
<Authors>Andreas Naumann</Authors>
<Description>Extend the event sourcing system with publishers like Mqtt or RabbitMQ</Description>
Expand Down
3 changes: 3 additions & 0 deletions src/EventSourcing/DI/EventMappingOptionsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public void Build()
var uncoveredEvents = _assembliesToRegisterMappers.SelectMany(assembly => assembly.Assembly.GetTypes()
.Where(t => t is { IsAbstract: false, IsInterface: false } && t.GetInterfaces().Any(i => i == typeof(IEvent)) && !alreadyCoveredEvents.Contains(t))).ToList();

foreach(var eventType in alreadyCoveredEvents)
_services.TryAddEnumerable(ServiceDescriptor.Transient(typeof(IEvent), eventType));

if (_ignoreUncoveredEvents || !uncoveredEvents.Any()) return;
var uncoveredEventNames = string.Join(", ", uncoveredEvents.Select(x => x.Name));
throw new InvalidOperationException($"There are uncovered events (in mappings): {uncoveredEventNames}");
Expand Down
2 changes: 1 addition & 1 deletion src/EventSourcing/EventSourcing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The persistance is based on the EntityFramworkCore and can be configured via Dep
<RepositoryUrl>https://github.com/mrmorrandir/EventSourcing</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>EventSourcing, Events, EventStore</PackageTags>
<PackageVersion>1.0.0-beta-5</PackageVersion>
<PackageVersion>1.0.0-beta-6</PackageVersion>
<PackageReleaseNotes>Breaking Changes - New Mapper Logic</PackageReleaseNotes>
</PropertyGroup>

Expand Down
Loading