public static GetShardServer ( ConfigState configState, System.Int64 nodeID ) : ConfigState.ShardServer | ||
configState | ConfigState | |
nodeID | System.Int64 | |
return | ConfigState.ShardServer |
public static ConfigState.ShardServer GetShardServer(ConfigState configState, Int64 nodeID)
{
foreach (var shardServer in configState.shardServers)
{
if (shardServer.nodeID == nodeID)
return shardServer;
}
return null;
}