Exemplo n.º 1
0
        public WizardBaseController(IConfiguration configuration,
                                    IWizardNavigatorService <WizardStep> navigatorPersistenceService)
        {
            var builder = new LinearWizardBuilder(this.WizardName, configuration, navigatorPersistenceService);

            wizard = builder.Build();
            this.wizard.Navigator.ActiveStepChanged += Navigator_ActiveStepChanged;
        }
Exemplo n.º 2
0
        public LinearWizardBuilder(string wizardName, IConfiguration configuration, IWizardNavigatorService <WizardStep> persistenceService)
        {
            Utility.ThrowIfNull(wizardName, nameof(wizardName));

            Utility.ThrowIfNull(configuration, nameof(configuration));

            this.navigatorPersistenceService = persistenceService ?? throw new ArgumentNullException("persistenceService");

            steps = new WizardStepCollection();

            var wizardSection = configuration.GetSection($"Wizards:{wizardName}");

            foreach (IConfigurationSection section in wizardSection.GetChildren())
            {
                AddStep(section.GetValue <string>("id"), section.GetValue <string>("title"), section.GetValue <string>("controllername"), section.GetValue <string>("action"));
            }
        }
 public WizardNavigator(WizardStepCollection wizardSteps, IWizardNavigatorService <T> persistenceService)
 {
     this.wizardSteps        = wizardSteps ?? throw new ArgumentNullException("wizardSteps");
     this.persistenceService = persistenceService ?? throw new ArgumentNullException("persistenceService");
 }
 public SummaryController(IConfiguration configuration,
                          IWizardNavigatorService <WizardStep> navigatorPersistenceService,
                          IHttpContextAccessor httpContextAccessor) :
     base(configuration, navigatorPersistenceService)
 {
 }
 public Sample2Controller(IConfiguration configuration,
                          IWizardNavigatorService <WizardStep> navigatorPersistenceService) :
     base(configuration, navigatorPersistenceService)
 {
 }
Exemplo n.º 6
0
 public HomeController(IWizardNavigatorService <WizardStep> navigatorPersistenceService)
 {
     this.navigatorPersistenceService = navigatorPersistenceService;
 }