Skip to content

Commit

Permalink
Merge pull request #20301 from abpframework/eventInfo.ExtraProperties
Browse files Browse the repository at this point in the history
Set event record extra properties from `eventInfo`
  • Loading branch information
hikalkan authored Jul 29, 2024
2 parents b118f76 + 21c27e3 commit be9aef8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public IncomingEventRecord(

ExtraProperties = new ExtraPropertyDictionary();
this.SetDefaultsForExtraProperties();
foreach (var property in eventInfo.ExtraProperties)
{
this.SetProperty(property.Key, property.Value);
}
}

public IncomingEventInfo ToIncomingEventInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public OutgoingEventRecord(

ExtraProperties = new ExtraPropertyDictionary();
this.SetDefaultsForExtraProperties();
foreach (var property in eventInfo.ExtraProperties)
{
this.SetProperty(property.Key, property.Value);
}
}

public OutgoingEventInfo ToOutgoingEventInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public IncomingEventRecord(

ExtraProperties = new ExtraPropertyDictionary();
this.SetDefaultsForExtraProperties();
foreach (var property in eventInfo.ExtraProperties)
{
this.SetProperty(property.Key, property.Value);
}
}

public IncomingEventInfo ToIncomingEventInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public OutgoingEventRecord(

ExtraProperties = new ExtraPropertyDictionary();
this.SetDefaultsForExtraProperties();
foreach (var property in eventInfo.ExtraProperties)
{
this.SetProperty(property.Key, property.Value);
}
}

public OutgoingEventInfo ToOutgoingEventInfo()
Expand Down

0 comments on commit be9aef8

Please sign in to comment.