about summary refs log tree commit diff
path: root/LibMatrix
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2024-06-03 04:59:40 +0200
committerEmma [it/its]@Rory& <root@rory.gay>2024-06-03 04:59:40 +0200
commit2a37322d78c9ce1d27cbc12e24dd918407a931e3 (patch)
treed3483edae6792bab1f10516b95779367220a2a8d /LibMatrix
parentAdd all projects to sln (diff)
downloadLibMatrix-2a37322d78c9ce1d27cbc12e24dd918407a931e3.tar.xz
Update dependencies, some tests, other things github/dev/event-rewrite dev/event-rewrite
Diffstat (limited to '')
-rw-r--r--LibMatrix.EventTypes.Abstractions/BaseMatrixEventContent.cs15
-rw-r--r--LibMatrix.EventTypes.Abstractions/MatrixEvent.cs5
-rw-r--r--LibMatrix.EventTypes.Abstractions/MatrixEventCollection.cs146
-rw-r--r--LibMatrix.EventTypes.Spec/RoomMembershipEventContent.cs4
-rw-r--r--LibMatrix.EventTypes.Spec/RoomMessageEventContent.cs113
-rw-r--r--LibMatrix.sln26
-rw-r--r--LibMatrix.sln.DotSettings.user5
-rw-r--r--LibMatrix/LibMatrix.csproj4
8 files changed, 168 insertions, 150 deletions
diff --git a/LibMatrix.EventTypes.Abstractions/BaseMatrixEventContent.cs b/LibMatrix.EventTypes.Abstractions/BaseMatrixEventContent.cs
index eba50a5..0906e30 100644
--- a/LibMatrix.EventTypes.Abstractions/BaseMatrixEventContent.cs
+++ b/LibMatrix.EventTypes.Abstractions/BaseMatrixEventContent.cs
@@ -6,15 +6,19 @@ using ArcaneLibs.Extensions;
 
 namespace LibMatrix.EventTypes;
 
+public interface IMatrixEvent {
+    
+}
+
 // <T> : MatrixEventContent where T : MatrixEventContent<T>, new() {
 /// <summary>
 ///     Extensible Event Content, aims to provide an API similar to JsonNode/JsonObject
 ///     <seealso cref="System.Text.Json.Nodes.JsonNode"/>
 ///     <seealso cref="System.Text.Json.Nodes.JsonObject"/>
 /// </summary>
-[JsonConverter(typeof(MatrixEventContentConverter<BaseMatrixEventContent>))]
+// [JsonConverter(typeof(BaseMatrixEventContent.MatrixEventContentConverter<BaseMatrixEventContent>))]
 // [JsonSerializable(typeof(MatrixEventContent))]
-public class BaseMatrixEventContent {
+public abstract class BaseMatrixEventContent {
     public JsonObject InternalJson { get; set; } = new();
 
     public BaseMatrixEventContent() { }
@@ -23,7 +27,7 @@ public class BaseMatrixEventContent {
         InternalJson = json.AsObject();
     }
 
-    public static implicit operator BaseMatrixEventContent(JsonNode json) => new(json);
+    // public static implicit operator BaseMatrixEventContent(JsonNode json) => new(json);
 
     // public static implicit operator JsonNode(MatrixEventContent content) => content.InternalJson;
 
@@ -33,7 +37,10 @@ public class BaseMatrixEventContent {
     [JsonIgnore]
     public string EventType => EventTypes.First();
 
-    public JsonNode? this[string key] => InternalJson[key];
+    public JsonNode? this[string key] {
+        get => InternalJson[key];
+        set => InternalJson[key] = value;
+    }
     
     public string ToJson() => InternalJson.ToJson();
 
diff --git a/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs b/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs
index 0e548c6..46e7757 100644
--- a/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs
+++ b/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs
@@ -2,7 +2,10 @@ using System.Text.Json.Serialization;
 
 namespace LibMatrix.EventTypes;
 
-public interface IMatrixEvent<out T> where T : BaseMatrixEventContent;
+public interface IBaseMatrixEvent {
+    
+}
+public partial interface IMatrixEvent<out T> : IBaseMatrixEvent where T : BaseMatrixEventContent;
 public class MatrixEvent<T> : IMatrixEvent<T> where T : BaseMatrixEventContent {
     [JsonPropertyName("content")]
     public T? Content { get; set; }
diff --git a/LibMatrix.EventTypes.Abstractions/MatrixEventCollection.cs b/LibMatrix.EventTypes.Abstractions/MatrixEventCollection.cs
index 78886d9..f789588 100644
--- a/LibMatrix.EventTypes.Abstractions/MatrixEventCollection.cs
+++ b/LibMatrix.EventTypes.Abstractions/MatrixEventCollection.cs
@@ -1,71 +1,75 @@
-// using System.Collections;
-//
-// namespace LibMatrix.EventTypes;
-//
-// public interface IMatrixEventCollection<out T> : IEnumerable<IMatrixEvent<T>> where T : MatrixEventContent {
-//     
-// }
-// public class MatrixEventCollection : IMatrixEventCollection<MatrixEventContent>, IList<MatrixEvent<MatrixEventContent> {
-//     private IList<MatrixEvent<MatrixEventContent>> _listImplementation;
-//     public IEnumerator<MatrixEvent<MatrixEventContent>> GetEnumerator() => _listImplementation.GetEnumerator();
-//
-//     IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable)_listImplementation).GetEnumerator();
-//
-//     public void Add(MatrixEvent<MatrixEventContent> item) => _listImplementation.Add(item);
-//
-//     public void Clear() => _listImplementation.Clear();
-//
-//     public bool Contains(MatrixEvent<MatrixEventContent> item) => _listImplementation.Contains(item);
-//
-//     public void CopyTo(MatrixEvent<MatrixEventContent>[] array, int arrayIndex) => _listImplementation.CopyTo(array, arrayIndex);
-//
-//     public bool Remove(MatrixEvent<MatrixEventContent> item) => _listImplementation.Remove(item);
-//
-//     public int Count => _listImplementation.Count;
-//
-//     public bool IsReadOnly => _listImplementation.IsReadOnly;
-//
-//     public int IndexOf(MatrixEvent<MatrixEventContent> item) => _listImplementation.IndexOf(item);
-//
-//     public void Insert(int index, MatrixEvent<MatrixEventContent> item) => _listImplementation.Insert(index, item);
-//
-//     public void RemoveAt(int index) => _listImplementation.RemoveAt(index);
-//
-//     public MatrixEvent<MatrixEventContent> this[int index] {
-//         get => _listImplementation[index];
-//         set => _listImplementation[index] = value;
-//     }
-// }
-// public class MatrixEventCollection<T> : IMatrixEventCollection<T>, IList<MatrixEvent<T>> where T : MatrixEventContent {
-//     //TODO: implement
-//     
-//     private IList<MatrixEvent<T>> _listImplementation = new List<MatrixEvent<T>>();
-//     public IEnumerator<MatrixEvent<T>> GetEnumerator() => _listImplementation.GetEnumerator();
-//
-//     IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable)_listImplementation).GetEnumerator();
-//
-//     public void Add(MatrixEvent<T> item) => _listImplementation.Add(item);
-//
-//     public void Clear() => _listImplementation.Clear();
-//
-//     public bool Contains(MatrixEvent<T> item) => _listImplementation.Contains(item);
-//
-//     public void CopyTo(MatrixEvent<T>[] array, int arrayIndex) => _listImplementation.CopyTo(array, arrayIndex);
-//
-//     public bool Remove(MatrixEvent<T> item) => _listImplementation.Remove(item);
-//
-//     public int Count => _listImplementation.Count;
-//
-//     public bool IsReadOnly => _listImplementation.IsReadOnly;
-//
-//     public int IndexOf(MatrixEvent<T> item) => _listImplementation.IndexOf(item);
-//
-//     public void Insert(int index, MatrixEvent<T> item) => _listImplementation.Insert(index, item);
-//
-//     public void RemoveAt(int index) => _listImplementation.RemoveAt(index);
-//
-//     public MatrixEvent<T> this[int index] {
-//         get => _listImplementation[index];
-//         set => _listImplementation[index] = value;
-//     }
-// }a
\ No newline at end of file
+using System.Collections;
+
+namespace LibMatrix.EventTypes.Abstractions;
+
+public interface IMatrixEventCollection<out T> : IEnumerable<IMatrixEvent<T>> where T : BaseMatrixEventContent {
+    
+}
+public class MatrixEventCollection : IMatrixEventCollection<BaseMatrixEventContent>, IList<MatrixEvent<BaseMatrixEventContent>> {
+    private IList<MatrixEvent<BaseMatrixEventContent>> _listImplementation;
+    IEnumerator<IMatrixEvent<BaseMatrixEventContent>> IEnumerable<IMatrixEvent<BaseMatrixEventContent>>.GetEnumerator() => GetEnumerator();
+
+    public IEnumerator<MatrixEvent<BaseMatrixEventContent>> GetEnumerator() => _listImplementation.GetEnumerator();
+
+    IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable)_listImplementation).GetEnumerator();
+
+    public void Add(MatrixEvent<BaseMatrixEventContent> item) => _listImplementation.Add(item);
+
+    public void Clear() => _listImplementation.Clear();
+
+    public bool Contains(MatrixEvent<BaseMatrixEventContent> item) => _listImplementation.Contains(item);
+
+    public void CopyTo(MatrixEvent<BaseMatrixEventContent>[] array, int arrayIndex) => _listImplementation.CopyTo(array, arrayIndex);
+
+    public bool Remove(MatrixEvent<BaseMatrixEventContent> item) => _listImplementation.Remove(item);
+
+    public int Count => _listImplementation.Count;
+
+    public bool IsReadOnly => _listImplementation.IsReadOnly;
+
+    public int IndexOf(MatrixEvent<BaseMatrixEventContent> item) => _listImplementation.IndexOf(item);
+
+    public void Insert(int index, MatrixEvent<BaseMatrixEventContent> item) => _listImplementation.Insert(index, item);
+
+    public void RemoveAt(int index) => _listImplementation.RemoveAt(index);
+
+    public MatrixEvent<BaseMatrixEventContent> this[int index] {
+        get => _listImplementation[index];
+        set => _listImplementation[index] = value;
+    }
+}
+public class MatrixEventCollection<T> : IMatrixEventCollection<T>, IList<MatrixEvent<T>> where T : BaseMatrixEventContent {
+    //TODO: implement
+    
+    private IList<MatrixEvent<T>> _listImplementation = new List<MatrixEvent<T>>();
+    IEnumerator<IMatrixEvent<T>> IEnumerable<IMatrixEvent<T>>.GetEnumerator() => GetEnumerator();
+
+    public IEnumerator<MatrixEvent<T>> GetEnumerator() => _listImplementation.GetEnumerator();
+
+    IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable)_listImplementation).GetEnumerator();
+
+    public void Add(MatrixEvent<T> item) => _listImplementation.Add(item);
+
+    public void Clear() => _listImplementation.Clear();
+
+    public bool Contains(MatrixEvent<T> item) => _listImplementation.Contains(item);
+
+    public void CopyTo(MatrixEvent<T>[] array, int arrayIndex) => _listImplementation.CopyTo(array, arrayIndex);
+
+    public bool Remove(MatrixEvent<T> item) => _listImplementation.Remove(item);
+
+    public int Count => _listImplementation.Count;
+
+    public bool IsReadOnly => _listImplementation.IsReadOnly;
+
+    public int IndexOf(MatrixEvent<T> item) => _listImplementation.IndexOf(item);
+
+    public void Insert(int index, MatrixEvent<T> item) => _listImplementation.Insert(index, item);
+
+    public void RemoveAt(int index) => _listImplementation.RemoveAt(index);
+
+    public MatrixEvent<T> this[int index] {
+        get => _listImplementation[index];
+        set => _listImplementation[index] = value;
+    }
+}
\ No newline at end of file
diff --git a/LibMatrix.EventTypes.Spec/RoomMembershipEventContent.cs b/LibMatrix.EventTypes.Spec/RoomMembershipEventContent.cs
index 370a192..5070ee4 100644
--- a/LibMatrix.EventTypes.Spec/RoomMembershipEventContent.cs
+++ b/LibMatrix.EventTypes.Spec/RoomMembershipEventContent.cs
@@ -1,6 +1,6 @@
 using System.Text.Json.Serialization;
 
-namespace LibMatrix.EventTypes.Events;
+namespace LibMatrix.EventTypes.Spec;
 
 [MatrixEvent("m.room.member")]
 [JsonConverter(typeof(MatrixEventContentConverter<RoomMembershipEventContent>))]
@@ -9,6 +9,4 @@ public class RoomMembershipEventContent : BaseMatrixEventContent {
         get => InternalJson["membership"]!.GetValue<string>();
         set => InternalJson["membership"] = value;
     }
-    
-    public string? Something { get; set; }
 }
\ No newline at end of file
diff --git a/LibMatrix.EventTypes.Spec/RoomMessageEventContent.cs b/LibMatrix.EventTypes.Spec/RoomMessageEventContent.cs
index f2a5483..3ff4486 100644
--- a/LibMatrix.EventTypes.Spec/RoomMessageEventContent.cs
+++ b/LibMatrix.EventTypes.Spec/RoomMessageEventContent.cs
@@ -1,57 +1,56 @@
-// using System.Text.Json.Serialization;
-// using LibMatrix.EventTypes;
-//
-// namespace LibMatrix.LegacyEvents.EventTypes.Spec;
-//
-// [MatrixEvent(EventId)]
-// public class RoomMessageEventContent : MatrixEventContent {
-//     public const string EventId = "m.room.message";
-//
-//     public RoomMessageEventContent(string messageType = "m.notice", string? body = null) {
-//         MessageType = messageType;
-//         Body = body ?? "";
-//     }
-//
-//     [JsonPropertyName("body")]
-//     public string Body { get; set; }
-//
-//     [JsonPropertyName("msgtype")]
-//     public string MessageType { get; set; } = "m.notice";
-//
-//     [JsonPropertyName("formatted_body")]
-//     public string? FormattedBody { get; set; }
-//
-//     [JsonPropertyName("format")]
-//     public string? Format { get; set; }
-//
-//     /// <summary>
-//     /// Media URI for this message, if any
-//     /// </summary>
-//     [JsonPropertyName("url")]
-//     public string? Url { get; set; }
-//
-//     public string? FileName { get; set; }
-//
-//     [JsonPropertyName("info")]
-//     public FileInfoStruct? FileInfo { get; set; }
-//     
-//     [JsonIgnore]
-//     public string BodyWithoutReplyFallback => Body.Split('\n').SkipWhile(x => x.StartsWith(">")).SkipWhile(x=>x.Trim().Length == 0).Aggregate((x, y) => $"{x}\n{y}");
-//
-//     public class FileInfoStruct {
-//         [JsonPropertyName("mimetype")]
-//         public string? MimeType { get; set; }
-//
-//         [JsonPropertyName("size")]
-//         public long Size { get; set; }
-//
-//         [JsonPropertyName("thumbnail_url")]
-//         public string? ThumbnailUrl { get; set; }
-//         
-//         [JsonPropertyName("w")]
-//         public int? Width { get; set; }
-//         
-//         [JsonPropertyName("h")]
-//         public int? Height { get; set; }
-//     }
-// }
\ No newline at end of file
+using System.Text.Json.Serialization;
+
+namespace LibMatrix.EventTypes.Spec;
+
+[MatrixEvent(EventId)]
+public class RoomMessageEventContent : BaseMatrixEventContent {
+    public const string EventId = "m.room.message";
+
+    public RoomMessageEventContent(string messageType = "m.notice", string? body = null) {
+        MessageType = messageType;
+        Body = body ?? "";
+    }
+
+    [JsonPropertyName("body")]
+    public string Body { get; set; }
+
+    [JsonPropertyName("msgtype")]
+    public string MessageType { get; set; } = "m.notice";
+
+    [JsonPropertyName("formatted_body")]
+    public string? FormattedBody { get; set; }
+
+    [JsonPropertyName("format")]
+    public string? Format { get; set; }
+
+    /// <summary>
+    /// Media URI for this message, if any
+    /// </summary>
+    [JsonPropertyName("url")]
+    public string? Url { get; set; }
+
+    public string? FileName { get; set; }
+
+    [JsonPropertyName("info")]
+    public FileInfoStruct? FileInfo { get; set; }
+    
+    [JsonIgnore]
+    public string BodyWithoutReplyFallback => Body.Split('\n').SkipWhile(x => x.StartsWith(">")).SkipWhile(x=>x.Trim().Length == 0).Aggregate((x, y) => $"{x}\n{y}");
+
+    public class FileInfoStruct {
+        [JsonPropertyName("mimetype")]
+        public string? MimeType { get; set; }
+
+        [JsonPropertyName("size")]
+        public long Size { get; set; }
+
+        [JsonPropertyName("thumbnail_url")]
+        public string? ThumbnailUrl { get; set; }
+        
+        [JsonPropertyName("w")]
+        public int? Width { get; set; }
+        
+        [JsonPropertyName("h")]
+        public int? Height { get; set; }
+    }
+}
\ No newline at end of file
diff --git a/LibMatrix.sln b/LibMatrix.sln
index 396c5a0..2293a8d 100644
--- a/LibMatrix.sln
+++ b/LibMatrix.sln
@@ -37,10 +37,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibMatrix.LegacyEvents.Even
 EndProject

 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibMatrix.HomeserverEmulator", "Tests\LibMatrix.HomeserverEmulator\LibMatrix.HomeserverEmulator.csproj", "{D44DB78D-9BAD-4AB6-A054-839ECA9D68D2}"

 EndProject

-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibMatrix.EventTypes", "LibMatrix.EventTypes\LibMatrix.EventTypes.csproj", "{E9E9567D-58F4-4E17-BBC1-D4746C2526DB}"

-EndProject

-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{6254A2BA-279F-49F7-B3F3-675397F0F644}"

-EndProject

 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArcaneLibs.Blazor.Components", "ArcaneLibs\ArcaneLibs.Blazor.Components\ArcaneLibs.Blazor.Components.csproj", "{C40726FB-C8D5-4D18-836E-9F7D394E2E0C}"

 EndProject

 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArcaneLibs.Legacy", "ArcaneLibs\ArcaneLibs.Legacy\ArcaneLibs.Legacy.csproj", "{2FF8C08A-9DC8-40A2-B9C8-A43615005B32}"

@@ -63,6 +59,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibMatrix.DevTestBot", "Uti
 EndProject

 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibMatrix.EventTypes.BasicTests", "Utilities\LibMatrix.EventTypes.BasicTests\LibMatrix.EventTypes.BasicTests.csproj", "{B14F6ED1-2222-454E-8632-D6CB25B7A66B}"

 EndProject

+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibMatrix.EventTypes.Benchmark", "Utilities\LibMatrix.EventTypes.Benchmark\LibMatrix.EventTypes.Benchmark.csproj", "{3583DD22-BECD-4CDF-B600-24AE95F2E950}"

+EndProject

+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibMatrix.EventTypes.Abstractions.Tests", "Tests\LibMatrix.EventTypes.Abstractions.Tests\LibMatrix.EventTypes.Abstractions.Tests.csproj", "{F362550F-74F1-425A-9943-CEB30B7541DD}"

+EndProject

 Global

 	GlobalSection(SolutionConfigurationPlatforms) = preSolution

 		Debug|Any CPU = Debug|Any CPU

@@ -124,14 +124,6 @@ Global
 		{D44DB78D-9BAD-4AB6-A054-839ECA9D68D2}.Debug|Any CPU.Build.0 = Debug|Any CPU

 		{D44DB78D-9BAD-4AB6-A054-839ECA9D68D2}.Release|Any CPU.ActiveCfg = Release|Any CPU

 		{D44DB78D-9BAD-4AB6-A054-839ECA9D68D2}.Release|Any CPU.Build.0 = Release|Any CPU

-		{E9E9567D-58F4-4E17-BBC1-D4746C2526DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

-		{E9E9567D-58F4-4E17-BBC1-D4746C2526DB}.Debug|Any CPU.Build.0 = Debug|Any CPU

-		{E9E9567D-58F4-4E17-BBC1-D4746C2526DB}.Release|Any CPU.ActiveCfg = Release|Any CPU

-		{E9E9567D-58F4-4E17-BBC1-D4746C2526DB}.Release|Any CPU.Build.0 = Release|Any CPU

-		{6254A2BA-279F-49F7-B3F3-675397F0F644}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

-		{6254A2BA-279F-49F7-B3F3-675397F0F644}.Debug|Any CPU.Build.0 = Debug|Any CPU

-		{6254A2BA-279F-49F7-B3F3-675397F0F644}.Release|Any CPU.ActiveCfg = Release|Any CPU

-		{6254A2BA-279F-49F7-B3F3-675397F0F644}.Release|Any CPU.Build.0 = Release|Any CPU

 		{C40726FB-C8D5-4D18-836E-9F7D394E2E0C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

 		{C40726FB-C8D5-4D18-836E-9F7D394E2E0C}.Debug|Any CPU.Build.0 = Debug|Any CPU

 		{C40726FB-C8D5-4D18-836E-9F7D394E2E0C}.Release|Any CPU.ActiveCfg = Release|Any CPU

@@ -176,6 +168,14 @@ Global
 		{B14F6ED1-2222-454E-8632-D6CB25B7A66B}.Debug|Any CPU.Build.0 = Debug|Any CPU

 		{B14F6ED1-2222-454E-8632-D6CB25B7A66B}.Release|Any CPU.ActiveCfg = Release|Any CPU

 		{B14F6ED1-2222-454E-8632-D6CB25B7A66B}.Release|Any CPU.Build.0 = Release|Any CPU

+		{3583DD22-BECD-4CDF-B600-24AE95F2E950}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

+		{3583DD22-BECD-4CDF-B600-24AE95F2E950}.Debug|Any CPU.Build.0 = Debug|Any CPU

+		{3583DD22-BECD-4CDF-B600-24AE95F2E950}.Release|Any CPU.ActiveCfg = Release|Any CPU

+		{3583DD22-BECD-4CDF-B600-24AE95F2E950}.Release|Any CPU.Build.0 = Release|Any CPU

+		{F362550F-74F1-425A-9943-CEB30B7541DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

+		{F362550F-74F1-425A-9943-CEB30B7541DD}.Debug|Any CPU.Build.0 = Debug|Any CPU

+		{F362550F-74F1-425A-9943-CEB30B7541DD}.Release|Any CPU.ActiveCfg = Release|Any CPU

+		{F362550F-74F1-425A-9943-CEB30B7541DD}.Release|Any CPU.Build.0 = Release|Any CPU

 	EndGlobalSection

 	GlobalSection(NestedProjects) = preSolution

 		{1B1B2197-61FB-416F-B6C8-845F2E5A0442} = {840309F0-435B-43A7-8471-8C2BE643889D}

@@ -197,5 +197,7 @@ Global
 		{93CED166-06E0-42E7-90C9-D18AA5286999} = {01A126FE-9D50-40F2-817B-E55F4065EA76}

 		{5C588D95-79A9-49DD-9EDD-C9D6434434E5} = {A6345ECE-4C5E-400F-9130-886E343BF314}

 		{B14F6ED1-2222-454E-8632-D6CB25B7A66B} = {A6345ECE-4C5E-400F-9130-886E343BF314}

+		{3583DD22-BECD-4CDF-B600-24AE95F2E950} = {A6345ECE-4C5E-400F-9130-886E343BF314}

+		{F362550F-74F1-425A-9943-CEB30B7541DD} = {BFE16D8E-EFC5-49F6-9854-DB001309B3B4}

 	EndGlobalSection

 EndGlobal

diff --git a/LibMatrix.sln.DotSettings.user b/LibMatrix.sln.DotSettings.user
index c5570e2..c724579 100644
--- a/LibMatrix.sln.DotSettings.user
+++ b/LibMatrix.sln.DotSettings.user
@@ -4,8 +4,13 @@
 	<s:String x:Key="/Default/Environment/AssemblyExplorer/XmlDocument/@EntryValue">&lt;AssemblyExplorer&gt;
   &lt;Assembly Path="/home/root@Rory/.cache/NuGetPackages/microsoft.extensions.hosting.abstractions/7.0.0/lib/net7.0/Microsoft.Extensions.Hosting.Abstractions.dll" /&gt;
 &lt;/AssemblyExplorer&gt;</s:String>
+	<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=349cfde3_002D4ded_002D46ac_002Dbd2c_002Da2222a27e852/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="All tests from &amp;lt;Tests&amp;gt;" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
+  &lt;Project Location="/home/Rory/git/matrix/MatrixRoomUtils/LibMatrix" Presentation="&amp;lt;Tests&amp;gt;" /&gt;
+&lt;/SessionState&gt;</s:String>
+	
 	<s:Boolean x:Key="/Default/UnloadedProject/UnloadedProjects/=1b1b2197_002D61fb_002D416f_002Db6c8_002D845f2e5a0442_0023LibMatrix_002EExampleBot/@EntryIndexedValue">True</s:Boolean>
 	<s:Boolean x:Key="/Default/UnloadedProject/UnloadedProjects/=345934ff_002Dca81_002D4a4b_002Db137_002D9f198102c65f_0023LibMatrix_002ETests/@EntryIndexedValue">True</s:Boolean>
+	
 	<s:Boolean x:Key="/Default/UnloadedProject/UnloadedProjects/=35df9a1a_002Dd988_002D4225_002Dafa3_002D06bb8edeb559_0023LibMatrix_002EDebugDataValidationApi/@EntryIndexedValue">True</s:Boolean>
 	<s:Boolean x:Key="/Default/UnloadedProject/UnloadedProjects/=8f0a820e_002Df6ae_002D45a2_002D970e_002D7a3759693919_0023ModerationBot/@EntryIndexedValue">True</s:Boolean>
 	<s:Boolean x:Key="/Default/UnloadedProject/UnloadedProjects/=d44db78d_002D9bad_002D4ab6_002Da054_002D839eca9d68d2_0023LibMatrix_002EHomeserverEmulator/@EntryIndexedValue">True</s:Boolean>
diff --git a/LibMatrix/LibMatrix.csproj b/LibMatrix/LibMatrix.csproj
index d6c9155..0478699 100644
--- a/LibMatrix/LibMatrix.csproj
+++ b/LibMatrix/LibMatrix.csproj
@@ -15,8 +15,8 @@
     </PropertyGroup>
 
     <ItemGroup>
-        <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0"/>
-        <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0"/>
+        <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
+        <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
     </ItemGroup>
 
     <ItemGroup>