示例#1
0
 public SiteProvisioningJob()
 {
     this._configFactory = ConfigurationFactory.GetInstance();
     this._appManager = _configFactory.GetAppSetingsManager();
     this._settings = _appManager.GetAppSettings();
     this._requestFactory = SiteRequestFactory.GetInstance();
     this._siteTemplateFactory = SiteTemplateFactory.GetInstance();
 }
        public MdlzCommonCustomizations(SiteInformation _request, ProvisioningTemplate _provTemplate, Template template)
        {
            request = _request;
            provTemplate = _provTemplate;

            if (appSettings == null)
            {
                IConfigurationFactory _cf = ConfigurationFactory.GetInstance();
                IAppSettingsManager _manager = _cf.GetAppSetingsManager();
                appSettings = _manager.GetAppSettings();
            }
            Authentication = new AppOnlyAuthenticationSite();
            Authentication.SiteUrl = _request.Url;
        }