public async Task <GccConfiguration> ToConfigAsync(bool autoInstall = true) { var result = new GccConfiguration(this); if (autoInstall) { await result.ResolveAsync(); } return(result); }
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); } }