@@ -108,11 +108,11 @@ public V1Event(string id, Uri source, string type, string? specVersion)
108
108
public virtual Neuroglia . Serialization . Dynamic ? Data { get ; protected set ; }
109
109
110
110
/// <summary>
111
- /// Gets an <see cref="IDictionary{TKey, TValue}"/> that contains the event's extension key/value mappings
111
+ /// Gets an <see cref="IDictionary{TKey, TValue}"/> that contains the event's extension attributes key/value mappings
112
112
/// </summary>
113
113
[ Newtonsoft . Json . JsonExtensionData ]
114
114
[ System . Text . Json . Serialization . JsonExtensionData ]
115
- public virtual IDictionary < string , object > Extensions { get ; protected set ; } = new Dictionary < string , object > ( ) ;
115
+ public virtual IDictionary < string , object > ExtensionAttributes { get ; protected set ; } = new Dictionary < string , object > ( ) ;
116
116
117
117
/// <summary>
118
118
/// Gets an <see cref="IReadOnlyDictionary{TKey, TValue}"/> containing all the <see cref="V1Event"/> attributes
@@ -145,9 +145,9 @@ IEnumerable<KeyValuePair<string, string>> AttributesEnumerator
145
145
yield return new KeyValuePair < string , string > ( nameof ( Subject ) . ToLower ( ) , this . Subject ) ;
146
146
if ( this . Time . HasValue )
147
147
yield return new KeyValuePair < string , string > ( nameof ( Time ) . ToLower ( ) , this . Time . ToString ( ) ! ) ;
148
- if ( this . Extensions != null )
148
+ if ( this . ExtensionAttributes != null )
149
149
{
150
- foreach ( var extension in this . Extensions )
150
+ foreach ( var extension in this . ExtensionAttributes )
151
151
yield return new ( extension . Key , extension . Value . ToString ( ) ! ) ;
152
152
}
153
153
}
@@ -215,7 +215,7 @@ public static V1Event CreateFrom(CloudEvent cloudEvent)
215
215
e . Data = Neuroglia . Serialization . Dynamic . FromObject ( data ) ;
216
216
foreach ( var extensionsAttribute in cloudEvent . ExtensionAttributes )
217
217
{
218
- e . Extensions . Add ( extensionsAttribute . Name , extensionsAttribute . Format ( cloudEvent [ extensionsAttribute ] ! ) ) ;
218
+ e . ExtensionAttributes . Add ( extensionsAttribute . Name , extensionsAttribute . Format ( cloudEvent [ extensionsAttribute ] ! ) ) ;
219
219
}
220
220
return e ;
221
221
}
0 commit comments