Exemple #1
0
        public void ListMessages()
        {
            var messages = _messenger.GetMessages();

            foreach (var message in messages)
            {
                System.Console.WriteLine(message.Content);
            }
        }
Exemple #2
0
        public void ListMessages()
        {
            var messages = _messenger.GetMessages();

            foreach (var message in messages)
            {
                System.Console.WriteLine($"{message.Content} - Country: {message.Country}, " +
                                         $"Dealer: {message.Dealer}, Records: {message.RecordsProcessed}");
            }
        }
Exemple #3
0
        public void ListMessages()
        {
            var messages = _messenger.GetMessages();

            foreach (var message in messages)
            {
                System.Console.WriteLine($"{message.Content} - Machine: {message.MachineName}, " +
                                         $"Started: {message.StartDate:dd/MM/yyyy}, Ended: {message.EndDate:dd/MM/yyyy}");
            }
        }
Exemple #4
0
        public void ListMessages()
        {
            var messages = _messenger.GetMessages();

            foreach (var message in messages)
            {
                System.Console.WriteLine($"{message.Content} - File: {message.FileName}, " +
                                         $"Pass: {message.TotalPass}, Fail: {message.TotalFail}");
            }
        }
Exemple #5
0
        public void ListMessages()
        {
            var messages = _messenger.GetMessages(IndexName, TypeName);

            if (messages != null)
            {
                foreach (var item in messages)
                {
                    var message = DataJsonSerializer <PledgeRun> .DeserializeFromJson(item.ToString());

                    if (message == null)
                    {
                        System.Console.WriteLine("Unable to retrieve pledge run data");
                        return;
                    }

                    System.Console.WriteLine($"{message.Content} - File: {message.FileName}, " +
                                             $"Pass: {message.TotalPass}, Fail: {message.TotalFail}");
                }
            }
        }