Skip to content

Commit

Permalink
refactor: remove type constraint for ToEventMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi authored Jan 3, 2025
1 parent fa3b184 commit 6f2a521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WeihanLi.Common/Event/EventBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static class EventBaseExtensions
s.TypeNameHandling = TypeNameHandling.Objects;
});

public static string ToEventMsg<TEvent>(this TEvent @event) where TEvent : class, IEventBase
public static string ToEventMsg<TEvent>(this TEvent @event)
{
Guard.NotNull(@event);
return @event.ToJson(EventSerializerSettings);
Expand Down

0 comments on commit 6f2a521

Please sign in to comment.