Example #1
0
        public static void CreateCloudInfrastructure(CreateCloudServiceProviderModel model)
        {
            string dir = GetResourceFilePath(model.CloudProvider, model.InfrastructureName, model.ResourceType);

            var content = JsonConvert.SerializeObject(model.ResourceContent);

            try
            {
                File.WriteAllText(CreateContentFile(model.InfrastructureName, dir), content);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
 public void CreateCloudInfrastructure(CreateCloudServiceProviderModel model)
 {
     CloudServiceProviderUtils.CreateCloudInfrastructure(model);
 }