private IDictionary <string, ManagedClusterAddonProfile> CreateAddonsProfiles() { if (this.IsParameterBound(c => c.AddOnNameToBeEnabled)) { Dictionary <string, ManagedClusterAddonProfile> addonProfiles = new Dictionary <string, ManagedClusterAddonProfile>(); return(AddonUtils.EnableAddonsProfile(addonProfiles, AddOnNameToBeEnabled, WorkspaceResourceId, SubnetName)); } else { return(null); } }
private AddonProvider() { var aggregate = new AggregateCatalog(); AddonUtils.AddDirectories(aggregate, PATH); AddonUtils.AddAssemblies(aggregate); this._container = new LazyContainer <IAddon, IAddonMetadata>(aggregate).ToList(); #if DEBUG Debug.WriteLine("---"); foreach (var item in this._container) { Debug.WriteLine(item.Metadata.Id); } #endif }
protected override IDictionary <string, ManagedClusterAddonProfile> UpdateAddonsProfile(IDictionary <string, ManagedClusterAddonProfile> addonProfiles) { return(AddonUtils.EnableAddonsProfile(addonProfiles, Name, nameof(Name), WorkspaceResourceId, nameof(WorkspaceResourceId), SubnetName, nameof(SubnetName))); }