diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityConnected.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientConnected.g.cs similarity index 65% rename from sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityConnected.g.cs rename to sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientConnected.g.cs index d4705866624..837a5acc632 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityConnected.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientConnected.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable @@ -14,12 +14,12 @@ namespace SpacetimeDB.Types { public sealed partial class RemoteReducers : RemoteBase { - public delegate void IdentityConnectedHandler(ReducerEventContext ctx); - public event IdentityConnectedHandler? OnIdentityConnected; + public delegate void ClientConnectedHandler(ReducerEventContext ctx); + public event ClientConnectedHandler? OnClientConnected; - public bool InvokeIdentityConnected(ReducerEventContext ctx, Reducer.IdentityConnected args) + public bool InvokeClientConnected(ReducerEventContext ctx, Reducer.ClientConnected args) { - if (OnIdentityConnected == null) + if (OnClientConnected == null) { if (InternalOnUnhandledReducerError != null) { @@ -31,7 +31,7 @@ public bool InvokeIdentityConnected(ReducerEventContext ctx, Reducer.IdentityCon } return false; } - OnIdentityConnected( + OnClientConnected( ctx ); return true; @@ -42,9 +42,9 @@ public abstract partial class Reducer { [SpacetimeDB.Type] [DataContract] - public sealed partial class IdentityConnected : Reducer, IReducerArgs + public sealed partial class ClientConnected : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "identity_connected"; + string IReducerArgs.ReducerName => "ClientConnected"; } } } diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityDisconnected.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientDisconnected.g.cs similarity index 64% rename from sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityDisconnected.g.cs rename to sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientDisconnected.g.cs index 2905db1a81d..4ed68c9e350 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/IdentityDisconnected.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/ClientDisconnected.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable @@ -14,12 +14,12 @@ namespace SpacetimeDB.Types { public sealed partial class RemoteReducers : RemoteBase { - public delegate void IdentityDisconnectedHandler(ReducerEventContext ctx); - public event IdentityDisconnectedHandler? OnIdentityDisconnected; + public delegate void ClientDisconnectedHandler(ReducerEventContext ctx); + public event ClientDisconnectedHandler? OnClientDisconnected; - public bool InvokeIdentityDisconnected(ReducerEventContext ctx, Reducer.IdentityDisconnected args) + public bool InvokeClientDisconnected(ReducerEventContext ctx, Reducer.ClientDisconnected args) { - if (OnIdentityDisconnected == null) + if (OnClientDisconnected == null) { if (InternalOnUnhandledReducerError != null) { @@ -31,7 +31,7 @@ public bool InvokeIdentityDisconnected(ReducerEventContext ctx, Reducer.Identity } return false; } - OnIdentityDisconnected( + OnClientDisconnected( ctx ); return true; @@ -42,9 +42,9 @@ public abstract partial class Reducer { [SpacetimeDB.Type] [DataContract] - public sealed partial class IdentityDisconnected : Reducer, IReducerArgs + public sealed partial class ClientDisconnected : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "identity_disconnected"; + string IReducerArgs.ReducerName => "ClientDisconnected"; } } } diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SendMessage.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SendMessage.g.cs index 551618458a8..01d6c672855 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SendMessage.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SendMessage.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable @@ -63,7 +63,7 @@ public SendMessage() this.Text = ""; } - string IReducerArgs.ReducerName => "send_message"; + string IReducerArgs.ReducerName => "SendMessage"; } } diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SetName.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SetName.g.cs index 9b6d7cfcc70..8cfd0d50582 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SetName.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Reducers/SetName.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable @@ -63,7 +63,7 @@ public SetName() this.Name = ""; } - string IReducerArgs.ReducerName => "set_name"; + string IReducerArgs.ReducerName => "SetName"; } } diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/SpacetimeDBClient.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/SpacetimeDBClient.g.cs index 359ca6ab6da..d025ee74fb3 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/SpacetimeDBClient.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/SpacetimeDBClient.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable @@ -468,10 +468,10 @@ protected override Reducer ToReducer(TransactionUpdate update) var encodedArgs = update.ReducerCall.Args; return update.ReducerCall.ReducerName switch { - "identity_connected" => BSATNHelpers.Decode(encodedArgs), - "identity_disconnected" => BSATNHelpers.Decode(encodedArgs), - "send_message" => BSATNHelpers.Decode(encodedArgs), - "set_name" => BSATNHelpers.Decode(encodedArgs), + "ClientConnected" => BSATNHelpers.Decode(encodedArgs), + "ClientDisconnected" => BSATNHelpers.Decode(encodedArgs), + "SendMessage" => BSATNHelpers.Decode(encodedArgs), + "SetName" => BSATNHelpers.Decode(encodedArgs), var reducer => throw new ArgumentOutOfRangeException("Reducer", $"Unknown reducer {reducer}") }; } @@ -493,8 +493,8 @@ protected override bool Dispatch(IReducerEventContext context, Reducer reducer) var eventContext = (ReducerEventContext)context; return reducer switch { - Reducer.IdentityConnected args => Reducers.InvokeIdentityConnected(eventContext, args), - Reducer.IdentityDisconnected args => Reducers.InvokeIdentityDisconnected(eventContext, args), + Reducer.ClientConnected args => Reducers.InvokeClientConnected(eventContext, args), + Reducer.ClientDisconnected args => Reducers.InvokeClientDisconnected(eventContext, args), Reducer.SendMessage args => Reducers.InvokeSendMessage(eventContext, args), Reducer.SetName args => Reducers.InvokeSetName(eventContext, args), _ => throw new ArgumentOutOfRangeException("Reducer", $"Unknown reducer {reducer}") diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/Message.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/Message.g.cs index 73c30ae33e5..52748a15fcb 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/Message.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/Message.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/User.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/User.g.cs index 8c5945a237f..dc158779408 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/User.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Tables/User.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/Message.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/Message.g.cs index a386797d9b9..b1b7fef3622 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/Message.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/Message.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable @@ -15,11 +15,11 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class Message { - [DataMember(Name = "sender")] + [DataMember(Name = "Sender")] public SpacetimeDB.Identity Sender; - [DataMember(Name = "sent")] + [DataMember(Name = "Sent")] public SpacetimeDB.Timestamp Sent; - [DataMember(Name = "text")] + [DataMember(Name = "Text")] public string Text; public Message( diff --git a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/User.g.cs b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/User.g.cs index 4dcf8eb52fb..a75cf13ee1e 100644 --- a/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/User.g.cs +++ b/sdks/csharp/examples~/quickstart-chat/client/module_bindings/Types/User.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit bc3d453e871c797c17fdab2d772019832cd9b73e). +// This was generated using spacetimedb cli version 1.2.0 (commit fb41e50eb73573b70eea532aeb6158eaac06fae0). #nullable enable @@ -15,11 +15,11 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class User { - [DataMember(Name = "identity")] + [DataMember(Name = "Identity")] public SpacetimeDB.Identity Identity; - [DataMember(Name = "name")] + [DataMember(Name = "Name")] public string? Name; - [DataMember(Name = "online")] + [DataMember(Name = "Online")] public bool Online; public User( diff --git a/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=LegacySubscribeAll.verified.txt b/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=LegacySubscribeAll.verified.txt index ad04d010a6e..4dd3f646b4f 100644 --- a/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=LegacySubscribeAll.verified.txt +++ b/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=LegacySubscribeAll.verified.txt @@ -18,8 +18,8 @@ ConnectionId: Guid_1 }, user: { - identity: Identity_1, - online: true + Identity: Identity_1, + Online: true } }, OnInsertUser: { @@ -35,26 +35,14 @@ ConnectionId: Guid_1 }, user: { - identity: Identity_2, - online: true + Identity: Identity_2, + Online: true } }, OnInsertUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487763059031, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.IdentityConnected - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -64,27 +52,14 @@ ConnectionId: Guid_1 }, user: { - identity: Identity_3, - online: true + Identity: Identity_3, + Online: true } }, OnUpdateUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487768057579, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: A - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -94,61 +69,19 @@ ConnectionId: Guid_1 }, oldUser: { - identity: Identity_1, - online: true + Identity: Identity_1, + Online: true }, newUser: { - identity: Identity_1, - name: A, - online: true + Identity: Identity_1, + Name: A, + Online: true } }, - OnSetName: { - Event: { - Timestamp: 1718487768057579, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: A - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487775346381, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, A! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -158,57 +91,15 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487775346381, - text: Hello, A! + Sender: Identity_3, + Sent: 1718487775346381, + Text: Hello, A! } }, - OnSendMessage: { - Event: { - Timestamp: 1718487775346381, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, A! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnUpdateUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487777307855, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: B - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -218,61 +109,19 @@ ConnectionId: Guid_1 }, oldUser: { - identity: Identity_3, - online: true + Identity: Identity_3, + Online: true }, newUser: { - identity: Identity_3, - name: B, - online: true + Identity: Identity_3, + Name: B, + Online: true } }, - OnSetName: { - Event: { - Timestamp: 1718487777307855, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: B - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487783175083, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, B! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -282,57 +131,15 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487783175083, - text: Hello, B! + Sender: Identity_1, + Sent: 1718487783175083, + Text: Hello, B! } }, - OnSendMessage: { - Event: { - Timestamp: 1718487783175083, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, B! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487787645364, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -342,56 +149,15 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487787645364, - text: Goodbye! + Sender: Identity_3, + Sent: 1718487787645364, + Text: Goodbye! } }, - OnSendMessage: { - Event: { - Timestamp: 1718487787645364, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnUpdateUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487791901504, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.IdentityDisconnected - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -401,33 +167,20 @@ ConnectionId: Guid_1 }, oldUser: { - identity: Identity_3, - name: B, - online: true + Identity: Identity_3, + Name: B, + Online: true }, newUser: { - identity: Identity_3, - name: B, - online: false + Identity: Identity_3, + Name: B, + Online: false } }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487794937841, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -437,78 +190,49 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487794937841, - text: Goodbye! + Sender: Identity_1, + Sent: 1718487794937841, + Text: Goodbye! } - }, - OnSendMessage: { - Event: { - Timestamp: 1718487794937841, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 } }, FinalSnapshot: { User: [ { - identity: Identity_1, - name: A, - online: true + Identity: Identity_1, + Name: A, + Online: true }, { - identity: Identity_2, - online: true + Identity: Identity_2, + Online: true }, { - identity: Identity_3, - name: B, - online: false + Identity: Identity_3, + Name: B, + Online: false } ], Message: [ { - sender: Identity_3, - sent: 1718487775346381, - text: Hello, A! + Sender: Identity_3, + Sent: 1718487775346381, + Text: Hello, A! }, { - sender: Identity_1, - sent: 1718487783175083, - text: Hello, B! + Sender: Identity_1, + Sent: 1718487783175083, + Text: Hello, B! }, { - sender: Identity_3, - sent: 1718487787645364, - text: Goodbye! + Sender: Identity_3, + Sent: 1718487787645364, + Text: Goodbye! }, { - sender: Identity_1, - sent: 1718487794937841, - text: Goodbye! + Sender: Identity_1, + Sent: 1718487794937841, + Text: Goodbye! } ] }, diff --git a/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=SubscribeApplied.verified.txt b/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=SubscribeApplied.verified.txt index 9368d6d83a9..fa31e49891f 100644 --- a/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=SubscribeApplied.verified.txt +++ b/sdks/csharp/tests~/SnapshotTests.VerifySampleDump_dumpName=SubscribeApplied.verified.txt @@ -18,8 +18,8 @@ ConnectionId: Guid_1 }, user: { - identity: Identity_1, - online: true + Identity: Identity_1, + Online: true } }, OnInsertUser: { @@ -35,26 +35,14 @@ ConnectionId: Guid_1 }, user: { - identity: Identity_2, - online: true + Identity: Identity_2, + Online: true } }, OnInsertUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487763059031, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.IdentityConnected - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -64,27 +52,14 @@ ConnectionId: Guid_1 }, user: { - identity: Identity_3, - online: true + Identity: Identity_3, + Online: true } }, OnUpdateUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487768057579, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: A - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -94,61 +69,19 @@ ConnectionId: Guid_1 }, oldUser: { - identity: Identity_1, - online: true + Identity: Identity_1, + Online: true }, newUser: { - identity: Identity_1, - name: A, - online: true + Identity: Identity_1, + Name: A, + Online: true } }, - OnSetName: { - Event: { - Timestamp: 1718487768057579, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: A - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487775346381, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, A! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -158,57 +91,15 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487775346381, - text: Hello, A! + Sender: Identity_3, + Sent: 1718487775346381, + Text: Hello, A! } }, - OnSendMessage: { - Event: { - Timestamp: 1718487775346381, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, A! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnUpdateUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487777307855, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: B - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -218,61 +109,19 @@ ConnectionId: Guid_1 }, oldUser: { - identity: Identity_3, - online: true + Identity: Identity_3, + Online: true }, newUser: { - identity: Identity_3, - name: B, - online: true + Identity: Identity_3, + Name: B, + Online: true } }, - OnSetName: { - Event: { - Timestamp: 1718487777307855, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SetName, - name: B - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487783175083, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, B! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -282,57 +131,15 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487783175083, - text: Hello, B! + Sender: Identity_1, + Sent: 1718487783175083, + Text: Hello, B! } }, - OnSendMessage: { - Event: { - Timestamp: 1718487783175083, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Hello, B! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487787645364, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -342,56 +149,15 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487787645364, - text: Goodbye! + Sender: Identity_3, + Sent: 1718487787645364, + Text: Goodbye! } }, - OnSendMessage: { - Event: { - Timestamp: 1718487787645364, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnUpdateUser: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487791901504, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_3, - CallerConnectionId: Guid_2, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.IdentityDisconnected - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -401,33 +167,20 @@ ConnectionId: Guid_1 }, oldUser: { - identity: Identity_3, - name: B, - online: true + Identity: Identity_3, + Name: B, + Online: true }, newUser: { - identity: Identity_3, - name: B, - online: false + Identity: Identity_3, + Name: B, + Online: false } }, OnInsertMessage: { eventContext: { Event: { - $type: Event.Reducer, - ReducerEvent: { - Timestamp: 1718487794937841, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - } + $type: Event.UnknownTransaction }, Db: {Scrubbed}, Reducers: {Scrubbed}, @@ -437,40 +190,11 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487794937841, - text: Goodbye! + Sender: Identity_1, + Sent: 1718487794937841, + Text: Goodbye! } }, - OnSendMessage: { - Event: { - Timestamp: 1718487794937841, - Status: { - $type: Status.Committed - }, - CallerIdentity: Identity_1, - CallerConnectionId: Guid_3, - EnergyConsumed: {}, - Reducer: { - $type: Reducer.SendMessage, - text: Goodbye! - } - }, - Db: { - Message: { - Count: 4 - }, - User: { - Identity: {}, - Count: 3 - } - }, - Reducers: {}, - SetReducerFlags: {}, - IsActive: false, - Identity: Identity_1, - ConnectionId: Guid_1 - }, OnDeleteMessage: { eventContext: { Event: { @@ -484,9 +208,9 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487775346381, - text: Hello, A! + Sender: Identity_3, + Sent: 1718487775346381, + Text: Hello, A! } }, OnDeleteMessage: { @@ -502,9 +226,9 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487783175083, - text: Hello, B! + Sender: Identity_1, + Sent: 1718487783175083, + Text: Hello, B! } }, OnDeleteMessage: { @@ -520,9 +244,9 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487787645364, - text: Goodbye! + Sender: Identity_3, + Sent: 1718487787645364, + Text: Goodbye! } }, OnDeleteMessage: { @@ -538,9 +262,9 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487794937841, - text: Goodbye! + Sender: Identity_1, + Sent: 1718487794937841, + Text: Goodbye! } }, LogWarning: Subscription Error: $bad query dude, @@ -557,9 +281,9 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487775346381, - text: Hello, A! + Sender: Identity_3, + Sent: 1718487775346381, + Text: Hello, A! } }, OnInsertMessage: { @@ -575,9 +299,9 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487783175083, - text: Hello, B! + Sender: Identity_1, + Sent: 1718487783175083, + Text: Hello, B! } }, OnInsertMessage: { @@ -593,9 +317,9 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_3, - sent: 1718487787645364, - text: Goodbye! + Sender: Identity_3, + Sent: 1718487787645364, + Text: Goodbye! } }, OnInsertMessage: { @@ -611,49 +335,49 @@ ConnectionId: Guid_1 }, message: { - sender: Identity_1, - sent: 1718487794937841, - text: Goodbye! + Sender: Identity_1, + Sent: 1718487794937841, + Text: Goodbye! } } }, FinalSnapshot: { User: [ { - identity: Identity_1, - name: A, - online: true + Identity: Identity_1, + Name: A, + Online: true }, { - identity: Identity_2, - online: true + Identity: Identity_2, + Online: true }, { - identity: Identity_3, - name: B, - online: false + Identity: Identity_3, + Name: B, + Online: false } ], Message: [ { - sender: Identity_1, - sent: 1718487794937841, - text: Goodbye! + Sender: Identity_1, + Sent: 1718487794937841, + Text: Goodbye! }, { - sender: Identity_3, - sent: 1718487787645364, - text: Goodbye! + Sender: Identity_3, + Sent: 1718487787645364, + Text: Goodbye! }, { - sender: Identity_1, - sent: 1718487783175083, - text: Hello, B! + Sender: Identity_1, + Sent: 1718487783175083, + Text: Hello, B! }, { - sender: Identity_3, - sent: 1718487775346381, - text: Hello, A! + Sender: Identity_3, + Sent: 1718487775346381, + Text: Hello, A! } ] },