Esempio n. 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;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ManageCommand" /> class.
        /// </summary>
        /// <param name="webUtility">The web utility.</param>
        /// <param name="applicationContext">The application context.</param>
        /// <param name="configuration">The configuration.</param>
        /// <param name="unitOfWork">The unit of work.</param>
        /// <param name="logger">The logger.</param>
        public ManageCommand(
            IWebUtility webUtility,
            IApplicationContext applicationContext,
            IManageCommandConfiguration configuration,
            IUnitOfWork unitOfWork,
            ILogger <ManageCommand> logger) : base("manage", unitOfWork, logger)
        {
            this.webUtility         = webUtility;
            this.applicationContext = applicationContext;

            linkExpirationPeriod = configuration.LinkExpirationPeriod;
            linkIdLength         = configuration.LinkIdLength;
        }