about summary refs log tree commit diff
path: root/LibMatrix.EventTypes
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-07-23 09:03:42 +0200
committerRory& <root@rory.gay>2025-07-23 09:05:01 +0200
commit150c6b03003ca97192b65a274c5234b04e32b2ac (patch)
treeabb91eaa22327de13f32e72c6d7e881338779ef4 /LibMatrix.EventTypes
parentMake server ACLs expose matching regexes (need to be checked and tested, still) (diff)
downloadLibMatrix-150c6b03003ca97192b65a274c5234b04e32b2ac.tar.xz
Add debugger displays to summarise SummaryDataStructure and EventList, hide ClassNeverInstantiated warning for EventContent implementations
Diffstat (limited to 'LibMatrix.EventTypes')
-rw-r--r--LibMatrix.EventTypes/EventContent.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibMatrix.EventTypes/EventContent.cs b/LibMatrix.EventTypes/EventContent.cs

index 07f56e2..d612e44 100644 --- a/LibMatrix.EventTypes/EventContent.cs +++ b/LibMatrix.EventTypes/EventContent.cs
@@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Text.Json; using System.Text.Json.Nodes; @@ -5,6 +6,7 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes; +[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global", Justification = "These get instantiated via reflection")] public abstract class EventContent { [JsonExtensionData] public Dictionary<string, object>? AdditionalData { get; set; } = [];