Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandConfiguration"/> class.
 /// </summary>
 /// <param name="manage">The manage.</param>
 /// <param name="next">The next.</param>
 public CommandConfiguration(
     IManageCommandConfiguration manage,
     INextCommandConfiguration next)
 {
     Manage = manage;
     Next   = next;
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NextCommand" /> class.
        /// </summary>
        /// <param name="scheduleParser">The schedule parser.</param>
        /// <param name="configuration">The configuration.</param>
        /// <param name="unitOfWork">The unit of work.</param>
        /// <param name="logger">The logger.</param>
        public NextCommand(
            IScheduleParser scheduleParser,
            INextCommandConfiguration configuration,
            IUnitOfWork unitOfWork,
            ILogger <ListCommand> logger) : base("next", unitOfWork, logger)
        {
            this.scheduleParser = scheduleParser;

            defaultMessageCount = configuration.DefaultMessageCount;
            maxMessageCount     = configuration.MaxMessageCount;
        }