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); }
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); }