public void ConfigureSubCollections(ICatalogCollection coll) { if ((_installFlags & InstallationFlags.ConfigureComponentsOnly) == 0) { foreach (Type t in _spec.ConfigurableTypes) { ICatalogObject obj = (ICatalogObject)FindObject(coll, t); ICatalogCollection ifcColl = (ICatalogCollection)(coll.GetCollection(CollectionName.Interfaces, obj.Key())); // Poke the cache so it's up to date... _cache["Component"] = obj; _cache["ComponentType"] = t; InterfaceConfigCallback cb = new InterfaceConfigCallback(ifcColl, t, _cache, _driver); _driver.ConfigureCollection(ifcColl, cb); if (_cache["SecurityOnMethods"] != null || ServicedComponentInfo.AreMethodsSecure(t)) { DBG.Info(DBG.Registration, "Found security on methods for: " + t); FixupMethodSecurity(ifcColl); _cache["SecurityOnMethods"] = null; } } } }
public void ConfigureSubCollections(ICatalogCollection coll) { if ((this._installFlags & InstallationFlags.ConfigureComponentsOnly) == InstallationFlags.Default) { foreach (Type type in this._spec.ConfigurableTypes) { ICatalogObject obj2 = (ICatalogObject) this.FindObject(coll, type); ICatalogCollection collection = (ICatalogCollection) coll.GetCollection(CollectionName.Interfaces, obj2.Key()); this._cache["Component"] = obj2; this._cache["ComponentType"] = type; InterfaceConfigCallback cb = new InterfaceConfigCallback(collection, type, this._cache, this._driver); this._driver.ConfigureCollection(collection, cb); if ((this._cache["SecurityOnMethods"] != null) || ServicedComponentInfo.AreMethodsSecure(type)) { this.FixupMethodSecurity(collection); this._cache["SecurityOnMethods"] = null; } } } }
public void ConfigureSubCollections(ICatalogCollection coll) { if ((this._installFlags & InstallationFlags.ConfigureComponentsOnly) == InstallationFlags.Default) { foreach (Type type in this._spec.ConfigurableTypes) { ICatalogObject obj2 = (ICatalogObject)this.FindObject(coll, type); ICatalogCollection collection = (ICatalogCollection)coll.GetCollection(CollectionName.Interfaces, obj2.Key()); this._cache["Component"] = obj2; this._cache["ComponentType"] = type; InterfaceConfigCallback cb = new InterfaceConfigCallback(collection, type, this._cache, this._driver); this._driver.ConfigureCollection(collection, cb); if ((this._cache["SecurityOnMethods"] != null) || ServicedComponentInfo.AreMethodsSecure(type)) { this.FixupMethodSecurity(collection); this._cache["SecurityOnMethods"] = null; } } } }