Exemple #1
0
        public static void InitializeDefault(
            InteractiveInstallationPaths installationPaths = null)
        {
            if (Default != null)
            {
                throw new InvalidOperationException("InitializeDefault has already been called");
            }

            Default = new InteractiveInstallation(installationPaths);
        }
Exemple #2
0
        InteractiveInstallation(
            InteractiveInstallationPaths installationPaths)
        {
            // May come in null if initialized by an installed app
            BuildPath = DevEnvironment.RepositoryRootDirectory ?? string.Empty;

            workbooksClientInstallPath = installationPaths?.WorkbooksClientInstallPath;
            inspectorClientInstallPath = installationPaths?.InspectorClientInstallPath;
            agentsInstallPath          = installationPaths?.AgentsInstallPath;
            toolsInstallPath           = installationPaths?.ToolsInstallPath;
        }
        public static void InitializeDefault(
            bool isMac,
            string buildPath,
            InteractiveInstallationPaths installationPaths = null)
        {
            if (Default != null)
            {
                throw new InvalidOperationException("InitializeDefault has already been called");
            }

            Default = new InteractiveInstallation(isMac, buildPath, installationPaths);
        }
        InteractiveInstallation(
            bool isMac,
            string buildPath,
            InteractiveInstallationPaths installationPaths)
        {
            IsMac = isMac;

            // May come in null if initialized by an installed app
            BuildPath = buildPath ?? String.Empty;

            workbooksClientInstallPath = installationPaths?.WorkbooksClientInstallPath;
            inspectorClientInstallPath = installationPaths?.InspectorClientInstallPath;
            agentsInstallPath          = installationPaths?.AgentsInstallPath;
            toolsInstallPath           = installationPaths?.ToolsInstallPath;
        }