// Double Check For All These Values public ApexSharpConfig CreateSession() { FileInfo configLocation = new FileInfo(_apexSharpConfigSettings.ConfigLocation); DirectoryInfo configDirectory = configLocation.Directory; DirectoryInfo vsProjectLocation = new DirectoryInfo(_apexSharpConfigSettings.VsProjectLocation); DirectoryInfo salesForceLocation = new DirectoryInfo(_apexSharpConfigSettings.SalesForceLocation); Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "CSharpClasses"); Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "NoApex"); Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "Cache"); Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "SObjects"); return(ConnectionUtil.CreateSession(_apexSharpConfigSettings)); }
// ToDo: Double Check For All These Values public void CreateSession() { FileInfo configLocation = new FileInfo(_apexSharpConfigSettings.ConfigLocation); Log.ForContext <ApexSharp>().Debug(configLocation.FullName); DirectoryInfo vsProjectLocation = new DirectoryInfo(_apexSharpConfigSettings.VsProjectLocation); Log.ForContext <ApexSharp>().Debug(vsProjectLocation.FullName); DirectoryInfo salesForceLocation = new DirectoryInfo(_apexSharpConfigSettings.SalesForceLocation); Log.ForContext <ApexSharp>().Debug(salesForceLocation.FullName); // ToDo: Only Create If we do not have it Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "CSharpClasses"); Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "NoApex"); Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "Cache"); Directory.CreateDirectory(_apexSharpConfigSettings.VsProjectLocation + "SObjects"); ConnectionUtil.CreateSession(_apexSharpConfigSettings); }