diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2024-01-31 12:09:28 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2024-01-31 12:09:28 +0100 |
commit | 9f8d0c85c54b4715974994aea52562072d6f1751 (patch) | |
tree | ce5eaf47b02fb82bc99236b926eb9948322745f7 /LibMatrix/StateEvent.cs | |
parent | Get full state event (diff) | |
download | LibMatrix-9f8d0c85c54b4715974994aea52562072d6f1751.tar.xz |
Better sync filter support, named filters, error handling
Diffstat (limited to 'LibMatrix/StateEvent.cs')
-rw-r--r-- | LibMatrix/StateEvent.cs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs index 1a8df11..d78939e 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs @@ -8,7 +8,6 @@ using System.Text.Json.Serialization; using ArcaneLibs; using ArcaneLibs.Attributes; using ArcaneLibs.Extensions; -using Castle.DynamicProxy; using LibMatrix.EventTypes; using LibMatrix.Extensions; @@ -49,18 +48,6 @@ public class StateEvent { new JsonDecimalStringConverter() } }; - - private class EventContentInterceptor : IInterceptor { - public void Intercept(IInvocation invocation) { - Console.WriteLine($"Intercepting {invocation.Method.Name}"); - // if (invocation.Method.Name == "ToString") { - // invocation.ReturnValue = "EventContent"; - // return; - // } - - invocation.Proceed(); - } - } [JsonIgnore] [SuppressMessage("ReSharper", "PropertyCanBeMadeInitOnly.Global")] @@ -71,8 +58,6 @@ public class StateEvent { // } try { var c= (EventContent)RawContent.Deserialize(GetStateEventType(Type), TypedContentSerializerOptions)!; - // c = (EventContent)new ProxyGenerator().CreateClassProxyWithTarget(GetStateEventType(Type), c, new EventContentInterceptor()); - // Console.WriteLine(c.GetType().Name + ": " + string.Join(", ", c.GetType().GetRuntimeProperties().Select(x=>x.Name))); return c; } catch (JsonException e) { |