Definition
Assembly: System.Collections.Concurrent.dll Namespace: System.Collections.ConcurrentSyntax
Summary
This type is defined in System.Collections.Concurrent.Remarks
See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/system.collections.concurrent.concurrentdictionary{system.string, system.object}) for more information about the rest of the API.Methods
Filter Extension
Extension method from
System.Collections.Concurrent.SimpleMessageBus_ConcurrentDictionaryExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
metadata | System.Collections.Concurrent.ConcurrentDictionary<string, object> | The metadata dictionary to filter. |
Returns
Type:System.Collections.Concurrent.ConcurrentDictionary<string, object>
A new concurrent dictionary containing only the non-status entries.
Remarks
This method helps filter out handler execution metadata when copying metadata between events, ensuring that the execution status of one event doesn’t affect another.FilterAndCombine Extension
Extension method from
System.Collections.Concurrent.SimpleMessageBus_ConcurrentDictionaryExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
metadata | System.Collections.Concurrent.ConcurrentDictionary<string, object> | The metadata dictionary to filter and combine. |
payload | System.Collections.Generic.Dictionary<string, object> | The payload dictionary to combine with the filtered metadata. |
Returns
Type:System.Collections.Generic.Dictionary<string, object>
A new dictionary containing the combined entries from the payload and filtered metadata.