Ejemplo n.º 1
0
        public void SendQuota()
        {
            var cmd = new GetSendQuotaCommand();



            GetSendQuoteResponse resp = _cp.Process(cmd, new GetSendQuoteResponseParser());

            Console.WriteLine(resp.Command + " : ID " + resp.RequestID);

            Console.WriteLine("Max24HourSend = " + resp.Max24HourSend);
            Console.WriteLine("MaxSendRate = " + resp.MaxSendRate);
            Console.WriteLine("SentLast24Hours = " + resp.SentLast24Hours);
        }
Ejemplo n.º 2
0
        public void Bulk()
        {
            var sw = new Stopwatch();

            sw.Start();

            for (int i = 0; i < 10; i++)
            {
                var cmd = new GetSendQuotaCommand();

                GetSendQuoteResponse response = _cp.Process(cmd, new GetSendQuoteResponseParser());

                Console.WriteLine(response.Command + " : ID " + response.RequestID);
            }

            sw.Stop();
            Console.WriteLine(sw.Elapsed);
        }