예제 #1
0
 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);
     }
 }
예제 #2
0
 /// <summary>
 /// Returns Connectors
 /// </summary>
 /// <returns></returns>
 private FileConnectorBase GetProvisioningConnector()
 {
     ReflectionHelper _helper = new ReflectionHelper();
     FileConnectorBase _connectorInstance =  _helper.GetProvisioningConnector(ModuleKeys.PROVISIONINGCONNECTORS_KEY);
     return _connectorInstance;
 }