private static BenchmarkCellConfig GenerateBenchmarkConfig(int indClient, string step, string serviceType, string transportType, string hubProtocol, string scenario, string MessageSizeStr, List <string> targetConnectionIds, List <string> groupNameList, List <bool> callbackList, int messageCountPerInterval, bool enableGroupJoinLeave, List <bool> joinLeavePerGroupList, List <bool> sendGroupList) { var messageSize = ParseMessageSize(MessageSizeStr); var benchmarkCellConfig = new BenchmarkCellConfig { ServiceType = serviceType, TransportType = transportType, HubProtocol = hubProtocol, Scenario = scenario, Step = step, MixEchoConnection = 0, MixBroadcastConnection = 0, MixGroupName = "", MixGroupConnection = 0, MessageSize = messageSize, MessageCountPerInterval = messageCountPerInterval, EnableGroupJoinLeave = enableGroupJoinLeave }; // add lists benchmarkCellConfig.TargetConnectionIds.AddRange(targetConnectionIds); benchmarkCellConfig.GroupNameList.AddRange(groupNameList); benchmarkCellConfig.CallbackList.AddRange(callbackList); benchmarkCellConfig.JoinLeaveGroupList.AddRange(joinLeavePerGroupList); benchmarkCellConfig.SendGroupList.AddRange(sendGroupList); return(benchmarkCellConfig); }
public void LoadBenchmarkCellConfig(BenchmarkCellConfig benchmarkCellConfig) { _tk.BenchmarkCellConfig = benchmarkCellConfig; }