Skip to content

Commit

Permalink
feat: expose IEvent and add EventType for EventProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Mar 14, 2024
1 parent d458df3 commit 26421d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -52,7 +52,7 @@ protected EventBase(string eventId, DateTimeOffset eventAt)
}
}

internal interface IEvent
public interface IEvent
{
EventProperties Properties { get; }
object? Data { get; }
Expand Down
1 change: 1 addition & 0 deletions src/WeihanLi.Common/Event/EventProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ public sealed class EventProperties: Dictionary<string, object?>, IEventBase
public string EventId { get; set; } = Guid.NewGuid().ToString();
public string? TraceId { get; set; }
public string? EventSource { get; set; }
public string? EventType { get; set; }
}

0 comments on commit 26421d6

Please sign in to comment.