예제 #1
0
        public List <ICommand> CreateEmptyMessages(int count)
        {
            List <ICommand> list = new List <ICommand>();

            for (int i = 0; i < count; i++)
            {
                //If you want to change Type of messages
                //Change there Type of MessageId
                EmptyMessageId emptyMessageId = new EmptyMessageId(Guid.NewGuid().ToString(), "elders");
                //And there change constructor to be form type that you want
                var message = new CreateEmptyMessage(emptyMessageId, DateTimeOffset.UtcNow);
                list.Add(message);
            }
            _logger.LogInformation($"{list.Count} messages have been created.");
            return(list);
        }
 public void Handle(CreateEmptyMessage command)
 {
 }