示例#1
0
        public static Task RunRawClients(int clientCount, string applicationName, string baseUrl)
        {
            var tasks = new List <Task>(clientCount);

            for (int i = 0; i < tasks.Capacity; i++)
            {
                tasks.Add(RawMiniMqClientHttpClient.CallAsync(baseUrl, applicationName));
            }

            return(Task.WhenAll(tasks));
        }
示例#2
0
 private static Task RunRawClients(string baseUrl, string applicationName, int clientCount)
 {
     return(RawMiniMqClientHttpClient.RunRawClients(clientCount, applicationName, baseUrl));
 }