Skip to content

Commit 5de0ca2

Browse files
committed
refactor(BaseRpcComponentHandler): 将CacheComponent的set访问器改为private
修改访问修饰符以提高封装性,防止外部直接修改组件代理对象
1 parent 6e69acc commit 5de0ca2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GameFrameX.Core/BaseHandler/RPC/BaseRpcComponentHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace GameFrameX.Core.BaseHandler.RPC;
6161
/// <summary>
6262
/// 缓存组件代理对象
6363
/// </summary>
64-
public IComponentAgent CacheComponent { get; protected set; }
64+
public IComponentAgent CacheComponent { get; private set; }
6565

6666
/// <summary>
6767
/// 初始化

0 commit comments

Comments
 (0)