예제 #1
0
        public async Task <GccConfiguration> ToConfigAsync(bool autoInstall = true)
        {
            var result = new GccConfiguration(this);

            if (autoInstall)
            {
                await result.ResolveAsync();
            }

            return(result);
        }
예제 #2
0
        public static void Register(GccConfiguration configuration)
        {
            if (!s_registeredConfigurations.ContainsKey(configuration.Id))
            {
                s_registeredConfigurations.Add(configuration.Id, new List <GccConfiguration>());
            }

            if (!s_registeredConfigurations[configuration.Id].Contains(configuration))
            {
                s_registeredConfigurations[configuration.Id].InsertSorted(configuration);
            }
        }