コード例 #1
0
 public TrackingConsentController(IConsentAgreementService consentAgreementService,
                                  ICurrentCookieLevelProvider currentCookieLevelProvider,
                                  IConsentInfoProvider consentInfoProvider)
 {
     this.consentAgreementService    = consentAgreementService;
     this.currentCookieLevelProvider = currentCookieLevelProvider;
     this.consentInfoProvider        = consentInfoProvider;
 }
コード例 #2
0
 public PrivacyController(IConsentAgreementService consentAgreementService, ICurrentCookieLevelProvider cookieLevelProvider,
                          ICurrentUserContactProvider currentContactProvider, IWebFarmService webFarmService, ISiteService siteService, IConsentInfoProvider consentInfoProvider,
                          ITaskInfoProvider taskInfoProvider)
 {
     this.consentAgreementService = consentAgreementService;
     this.cookieLevelProvider     = cookieLevelProvider;
     this.currentContactProvider  = currentContactProvider;
     this.webFarmService          = webFarmService;
     this.siteService             = siteService;
     this.consentInfoProvider     = consentInfoProvider;
     this.taskInfoProvider        = taskInfoProvider;
 }
コード例 #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");
        }
コード例 #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");
        }
コード例 #5
0
 public TrackingConsentViewComponent(IConsentInfoProvider consentInfoProvider, IConsentAgreementService consentAgreementService)
 {
     this.consentInfoProvider     = consentInfoProvider;
     this.consentAgreementService = consentAgreementService;
 }