Пример #1
0
        private static bool IsSuffixUsedInGeneratedFilesDirectories(ConnectedServiceHandlerContext context, string serviceName, Project project)
        {
            string projectDir = Path.GetDirectoryName(project.FullName);

            Debug.Assert(!String.IsNullOrEmpty(projectDir));  // How can we not have a project path?
            string serviceDirectoryPath = Path.Combine(projectDir, SalesforceConnectedServiceHandler.GetServiceDirectoryName(context, serviceName));
            string modelsDirectoryPath  = Path.Combine(projectDir, SalesforceConnectedServiceHandler.GetModelsDirectoryName(serviceName));

            return(Directory.Exists(serviceDirectoryPath) || Directory.Exists(modelsDirectoryPath));
        }
Пример #2
0
        public string GetDefaultedModelsHintPath()
        {
            string modelsHintPath = this.ModelsHintPath;

            if (string.IsNullOrWhiteSpace(modelsHintPath))
            {
                modelsHintPath = SalesforceConnectedServiceHandler.GetModelsDirectoryName(this.ServiceName);
            }

            return(modelsHintPath);
        }