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


            HttpWebRequest request = _builder.Build(cmd);

            Helper.ProcessRequest(request);

            var cp = new CommandProcessor(_builder);

            var stats = cp.Process(cmd, new GetSendStatisticsResponseParser());

            foreach (var stat in stats.SendStatistics)
            {
                Console.WriteLine("DeliveryAttempts : " + stat.DeliveryAttempts);
                Console.WriteLine("Timestamp : " + stat.Timestamp);
                Console.WriteLine("Bounces : " + stat.Bounces);
                Console.WriteLine("Rejects : " + stat.Rejects);
                Console.WriteLine("Complaints : " + stat.Complaints);
            }
        }
		public void SendStatistics()
		{
			var cmd = new GetSendStatisticsCommand();


			HttpWebRequest request = _builder.Build(cmd);

			Helper.ProcessRequest(request);

			var cp = new CommandProcessor(_builder);

			var stats = cp.Process(cmd, new GetSendStatisticsResponseParser());

			foreach(var stat in stats.SendStatistics)
			{
				Console.WriteLine("DeliveryAttempts : " + stat.DeliveryAttempts);
				Console.WriteLine("Timestamp : " + stat.Timestamp);
				Console.WriteLine("Bounces : " + stat.Bounces);
				Console.WriteLine("Rejects : " + stat.Rejects);
				Console.WriteLine("Complaints : " + stat.Complaints);
			}
			
		}