diff --git a/crates/cli/src/subcommands/generate/csharp.rs b/crates/cli/src/subcommands/generate/csharp.rs index a5f890250ad..caefb16d586 100644 --- a/crates/cli/src/subcommands/generate/csharp.rs +++ b/crates/cli/src/subcommands/generate/csharp.rs @@ -648,7 +648,7 @@ pub fn autogen_csharp_globals(ctx: &GenCtx, items: &[GenItem], namespace: &str) indented_block(&mut output, |output| { writeln!( output, - "internal RemoteReducers(DbConnection conn) : base(conn) {{ this.SetCallReducerFlags = SetReducerFlags; }}" + "internal RemoteReducers(DbConnection conn, SetReducerFlags SetReducerFlags) : base(conn) {{ this.SetCallReducerFlags = SetReducerFlags; }}" ); writeln!(output, "internal readonly SetReducerFlags SetCallReducerFlags;"); diff --git a/crates/cli/tests/snapshots/codegen__codegen_csharp.snap b/crates/cli/tests/snapshots/codegen__codegen_csharp.snap index e34ca97657b..959739efad8 100644 --- a/crates/cli/tests/snapshots/codegen__codegen_csharp.snap +++ b/crates/cli/tests/snapshots/codegen__codegen_csharp.snap @@ -880,7 +880,7 @@ namespace SpacetimeDB public sealed class RemoteReducers : RemoteBase { - internal RemoteReducers(DbConnection conn) : base(conn) { this.SetCallReducerFlags = SetReducerFlags; } + internal RemoteReducers(DbConnection conn, SetReducerFlags SetReducerFlags) : base(conn) { this.SetCallReducerFlags = SetReducerFlags; } internal readonly SetReducerFlags SetCallReducerFlags; public delegate void AddPlayerHandler(EventContext ctx, string name); public event AddPlayerHandler? OnAddPlayer;