Esempio n. 1
0
        public override void Initialize()
        {
            base.Initialize();

            var settingsManager = _container.Resolve<ISettingsManager>();
            
            var zendeskHelpdesk = new ZendeskHelpdeskSettings(settingsManager, _accessTokenPropertyName, _subdomainPropertyName, _customerEmailPropertyName);
            
            _container.RegisterInstance<IHelpdeskSettings>(zendeskHelpdesk);
            _container.RegisterType<ZendeskController>();
            _container.RegisterType<ZDAuthorizationController>();
        }
Esempio n. 2
0
        public override void Initialize()
        {
            base.Initialize();

            var settingsManager = _container.Resolve<ISettingsManager>();

            var zendeskCode = settingsManager.GetValue("Zendesk.Helpdesk.Code", string.Empty);
            var zendeskDescription = settingsManager.GetValue("Zendesk.Helpdesk.Description", string.Empty);
            var zendeskLogoUrl = settingsManager.GetValue("Zendesk.Helpdesk.LogoUrl", string.Empty);


            var zendeskHelpdesk = new ZendeskHelpdeskSettings(settingsManager, _accessTokenPropertyName, _subdomainPropertyName, zendeskCode, zendeskDescription, zendeskLogoUrl);
            
            _container.RegisterInstance<IHelpdeskSettings>(zendeskHelpdesk);
            _container.RegisterType<ZendeskController>();
            _container.RegisterType<ZDAuthorizationController>();
        }