Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MirolimMajidov committed Dec 9, 2024
1 parent 546562f commit 020698f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/EventBus.RabbitMQ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AlifCapital.EventStorage" Version="9.0.2" />
<PackageReference Include="AlifCapital.EventStorage" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0"/>
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.0"/>
Expand Down
2 changes: 1 addition & 1 deletion src/Models/IBaseEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ public interface IBaseEvent : IEvent, IHasHeaders
/// <summary>
/// Created time of event
/// </summary>
public DateTime CreatedAt { get; }
public DateTime CreatedAt { get; init; }
}
4 changes: 2 additions & 2 deletions src/Publishers/Models/PublishEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ protected PublishEvent(Guid? id = null)
CreatedAt = DateTime.Now;
}

public Guid EventId { get; }
public Guid EventId { get; init; }

public DateTime CreatedAt { get; }
public DateTime CreatedAt { get; init; }

[JsonIgnore]
public Dictionary<string, string> Headers { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions src/Subscribers/Models/SubscribeEvent.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using EventStorage.Models;

namespace EventBus.RabbitMQ.Subscribers.Models;

Expand All @@ -8,6 +9,12 @@ namespace EventBus.RabbitMQ.Subscribers.Models;
public abstract record SubscribeEvent : ISubscribeEvent
{
public Guid EventId { get; set; }

Guid IEvent.EventId
{
get => EventId;
init => EventId = value;
}

public DateTime CreatedAt { get; init; }

Expand Down

0 comments on commit 020698f

Please sign in to comment.