Esempio n. 1
0
        /// <summary>
        /// Constructor.
        /// You can use a dependency injection container to initialize the consent agreement service.
        /// </summary>
        public RegisterWithConsentController()
        {
            formConsentAgreementService = Service.Resolve <IFormConsentAgreementService>();

            // Gets the related consent
            // Fill in the code name of the appropriate consent object in Kentico
            consent = ConsentInfoProvider.GetConsentInfo("SampleRegistrationConsent");
        }
        /// <summary>
        /// Constructor.
        /// You can use a dependency injection container to initialize the services.
        /// </summary>
        public FeedbackFormConsentController()
        {
            contactTrackingService      = new ContactTrackingService();
            formConsentAgreementService = Service.Resolve <IFormConsentAgreementService>();

            // Gets the related consent
            // Fill in the code name of the appropriate consent object in Kentico
            consent = ConsentInfoProvider.GetConsentInfo("SampleFormConsent");
        }
Esempio n. 3
0
        /// <summary>
        /// Constructor.
        /// You can use a dependency injection container to initialize required services and providers.
        /// </summary>
        public RegisterWithConsentController(IEventLogService eventLogService,
                                             IFormConsentAgreementService formConsentAgreementService,
                                             IUserInfoProvider userInfoProvider,
                                             IConsentInfoProvider consentInfoProvider)
        {
            this.eventLogService             = eventLogService;
            this.formConsentAgreementService = formConsentAgreementService;
            this.userInfoProvider            = userInfoProvider;

            // Gets the related consent
            // Fill in the code name of the appropriate consent object in Kentico
            consent = consentInfoProvider.Get("SampleRegistrationConsent");
        }
Esempio n. 4
0
        /// <summary>
        /// Constructor.
        /// You can use a dependency injection container to initialize the consent agreement service.
        /// </summary>
        public RegisterWithConsentController(IFormConsentAgreementService formConsentAgreementService,
                                             SignInManager <ApplicationUser> signInManager,
                                             ApplicationUserManager <ApplicationUser> userManager,
                                             IEventLogService eventLogService,
                                             IConsentInfoProvider consentInfoProvider)
        {
            this.formConsentAgreementService = formConsentAgreementService;
            this.signInManager   = signInManager;
            this.userManager     = userManager;
            this.eventLogService = eventLogService;

            // Gets the related consent
            // Fill in the code name of the appropriate consent object in Xperience
            consent = consentInfoProvider.Get("SampleRegistrationConsent");
        }