Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        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
        }
Esempio n. 3
0
 protected override IDictionary <string, ManagedClusterAddonProfile> UpdateAddonsProfile(IDictionary <string, ManagedClusterAddonProfile> addonProfiles)
 {
     return(AddonUtils.EnableAddonsProfile(addonProfiles, Name, nameof(Name), WorkspaceResourceId, nameof(WorkspaceResourceId), SubnetName, nameof(SubnetName)));
 }