@@ -150,13 +150,13 @@ public partial struct NullStringNullable
150150 [ SpacetimeDB . View ( Name = "my_player" , Public = true ) ]
151151 public static Player ? MyPlayer ( ViewContext ctx )
152152 {
153- return ctx . Db . player . Identity . Find ( ctx . Sender ) ;
153+ return ctx . Db . player . Identity . Find ( ctx . Sender ( ) ) ;
154154 }
155155
156156 [ SpacetimeDB . View ( Name = "my_account" , Public = true ) ]
157157 public static Account ? MyAccount ( ViewContext ctx )
158158 {
159- return ctx . Db . account . Identity . Find ( ctx . Sender ) as Account ;
159+ return ctx . Db . account . Identity . Find ( ctx . Sender ( ) ) as Account ;
160160 }
161161
162162 [ SpacetimeDB . View ( Name = "my_account_missing" , Public = true ) ]
@@ -280,23 +280,23 @@ public static void InsertNullStringIntoNullable(ReducerContext ctx)
280280 [ Reducer ( ReducerKind . ClientConnected ) ]
281281 public static void ClientConnected ( ReducerContext ctx )
282282 {
283- Log . Info ( $ "Connect { ctx . Sender } ") ;
283+ Log . Info ( $ "Connect { ctx . Sender ( ) } ") ;
284284
285- if ( ctx . Db . player . Identity . Find ( ctx . Sender ) is Player player )
285+ if ( ctx . Db . player . Identity . Find ( ctx . Sender ( ) ) is Player player )
286286 {
287287 // We are not logging player login status, so do nothing
288288 }
289289 else
290290 {
291291 // Lets setup a new player with a level of 1
292- ctx . Db . player . Insert ( new Player { Identity = ctx . Sender , Name = "NewPlayer" } ) ;
293- var playerId = ( ctx . Db . player . Identity . Find ( ctx . Sender ) ! ) . Value . Id ;
292+ ctx . Db . player . Insert ( new Player { Identity = ctx . Sender ( ) , Name = "NewPlayer" } ) ;
293+ var playerId = ( ctx . Db . player . Identity . Find ( ctx . Sender ( ) ) ! ) . Value . Id ;
294294 ctx . Db . player_level . Insert ( new PlayerLevel { PlayerId = playerId , Level = 1 } ) ;
295295 }
296296
297- if ( ctx . Db . account . Identity . Find ( ctx . Sender ) is null )
297+ if ( ctx . Db . account . Identity . Find ( ctx . Sender ( ) ) is null )
298298 {
299- ctx . Db . account . Insert ( new Account { Identity = ctx . Sender , Name = "Account" } ) ;
299+ ctx . Db . account . Insert ( new Account { Identity = ctx . Sender ( ) , Name = "Account" } ) ;
300300 }
301301
302302 if ( ctx . Db . nullable_vec . Id . Find ( 1 ) is null )
@@ -614,10 +614,10 @@ public static ReturnStruct TxContextCapabilities(ProcedureContext ctx)
614614 }
615615
616616 // Test 3: Verify transaction context properties are accessible
617- var txSender = tx . Sender ;
617+ var txSender = tx . Sender ( ) ;
618618 var txTimestamp = tx . Timestamp ;
619619
620- if ( txSender . Equals ( ctx . Sender ) == false )
620+ if ( txSender . Equals ( ctx . Sender ( ) ) == false )
621621 {
622622 throw new InvalidOperationException ( "Transaction sender should match procedure sender" ) ;
623623 }
@@ -654,14 +654,14 @@ public static ReturnStruct AuthenticationCapabilities(ProcedureContext ctx)
654654 {
655655 // Test 1: Verify authentication context is accessible from procedure context
656656 var procAuth = ctx . SenderAuth ;
657- var procSender = ctx . Sender ;
657+ var procSender = ctx . Sender ( ) ;
658658 var procConnectionId = ctx . ConnectionId ;
659659
660660 var result = ctx . WithTx ( tx =>
661661 {
662662 // Test 2: Verify authentication context is accessible from transaction context
663663 var txAuth = tx . SenderAuth ;
664- var txSender = tx . Sender ;
664+ var txSender = tx . Sender ( ) ;
665665 var txConnectionId = tx . ConnectionId ;
666666
667667 // Test 3: Authentication contexts should be consistent
0 commit comments