示例#1
0
        async Task CheckServerSourceAsync(RemoteServerPlatform platform)
        {
            try {
                await asyncManager.SwitchToBackground();

                if (platform == RemoteServerPlatform.Unknown)
                {
                    return;
                }

                //if (!solutionState.ContainProjects (platform)) {
                //	return;
                //}

                var isActive = false;
                var source   = serverSourceManager.GetSource(platform, out isActive);

                if (!isActive)
                {
                    serverSourceManager.AddSource(source);
                }
            } catch (Exception ex) {
                //Add tracing
            }
        }