Beispiel #1
0
        static void CreateReserveBatch(Serv.Client client)
        {
            for (int i = 0; i < invokeCount; i++)
            {
                List<Reserve> list = new List<Reserve>();
                for (int j = 0; j < packageCount; j++)
                {
                    Reserve r = CreateTestReserve(j);
                    list.Add(r);
                }

                Stopwatch watch = new Stopwatch();
                watch.Start();
                client.createBatch(list);
                watch.Stop();
                packageLog.Add(watch.Elapsed.TotalMilliseconds);
            }
        }