public TrackingConsentController(IConsentAgreementService consentAgreementService, ICurrentCookieLevelProvider currentCookieLevelProvider, IConsentInfoProvider consentInfoProvider) { this.consentAgreementService = consentAgreementService; this.currentCookieLevelProvider = currentCookieLevelProvider; this.consentInfoProvider = consentInfoProvider; }
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; }
/// <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"); }
/// <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"); }
public TrackingConsentViewComponent(IConsentInfoProvider consentInfoProvider, IConsentAgreementService consentAgreementService) { this.consentInfoProvider = consentInfoProvider; this.consentAgreementService = consentAgreementService; }