Skip to content

Commit

Permalink
feat: add IMessage constraint on Envelope
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Introduce IMessage constraint on `Envelope`
  • Loading branch information
lvermeulen authored Apr 13, 2022
1 parent 286ebb9 commit 2a34560
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ nuget Be.Vlaanderen.Basisregisters.Build.Pipeline 6.0.3

nuget Be.Vlaanderen.Basisregisters.AggregateSource.SqlStreamStore.Autofac 6.0.0

nuget Be.Vlaanderen.Basisregisters.EventHandling 4.0.0
nuget Be.Vlaanderen.Basisregisters.EventHandling.Autofac 4.0.0
nuget Be.Vlaanderen.Basisregisters.EventHandling 4.1.0
nuget Be.Vlaanderen.Basisregisters.EventHandling.Autofac 4.1.0

nuget Be.Vlaanderen.Basisregisters.EntityFrameworkCore.EntityTypeConfiguration 3.0.0

Expand Down
6 changes: 3 additions & 3 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ NUGET
System.Data.Common (>= 4.3)
Be.Vlaanderen.Basisregisters.EntityFrameworkCore.EntityTypeConfiguration (3.0)
Microsoft.EntityFrameworkCore (>= 6.0.3)
Be.Vlaanderen.Basisregisters.EventHandling (4.0)
Be.Vlaanderen.Basisregisters.EventHandling (4.1)
Be.Vlaanderen.Basisregisters.Converters.TrimString (>= 3.0)
Newtonsoft.Json (>= 13.0.1)
NodaTime.Serialization.JsonNet (>= 3.0)
Be.Vlaanderen.Basisregisters.EventHandling.Autofac (4.0)
Be.Vlaanderen.Basisregisters.EventHandling.Autofac (4.1)
Autofac.Extensions.DependencyInjection (>= 7.2)
Be.Vlaanderen.Basisregisters.EventHandling (4.0)
Be.Vlaanderen.Basisregisters.EventHandling (4.1)
Be.Vlaanderen.Basisregisters.Utilities.HashCodeCalculator (3.0)
Be.Vlaanderen.Basisregisters.Utilities.HexByteConvertor (3.0)
Be.Vlaanderen.Basisregisters.Utilities.ToStringBuilder (3.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ namespace Be.Vlaanderen.Basisregisters.ProjectionHandling.SqlStreamStore
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using EventHandling;

public class Envelope<TMessage> // Used by handlers
where TMessage : IMessage
{
private readonly Envelope _envelope;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private Func<TestMessage, Task<AppendResult>> CreateMessageStorerAndStartHandlin

[EventName("TestMessage")]
[EventDescription("TestMessage description")]
public class TestMessage
public class TestMessage : IMessage
{
public int Id { get; set; }
}
Expand Down

0 comments on commit 2a34560

Please sign in to comment.