public ProvisioningTemplate GetProvisioningTemplate(string name) { try { ReflectionHelper _reflectionHelper = new ReflectionHelper(); var _provider = _reflectionHelper.GetTemplateProvider(ModuleKeys.PROVISIONINGPROVIDER_KEY); var _pt = _provider.GetTemplate(name); return _pt; } catch(Exception _ex) { var _message = string.Format(PCResources.TemplateProviderBase_Exception_Message, _ex.Message); Log.Fatal("Provisioning.Common.Data.Templates.Impl.XMLSiteTemplateManager", PCResources.TemplateProviderBase_Exception_Message, _ex); throw new DataStoreException(_message, _ex); } }
/// <summary> /// Returns Connectors /// </summary> /// <returns></returns> private FileConnectorBase GetProvisioningConnector() { ReflectionHelper _helper = new ReflectionHelper(); FileConnectorBase _connectorInstance = _helper.GetProvisioningConnector(ModuleKeys.PROVISIONINGCONNECTORS_KEY); return _connectorInstance; }