public static IEnumerable <IReference> FindMissingReferences(this AssetDependencyManager manager, AssetItem item) { if (item == null) { throw new ArgumentNullException("item"); } return(manager.FindMissingReferences(item.Id)); }
public static AssetDependencies Find(this AssetDependencyManager manager, AssetItem item) { if (item == null) { throw new ArgumentNullException("item"); } return(manager.FindDependencySet(item.Id)); }
public override void Initialize() { base.Initialize(); TypeFactory = new TypeDescriptorFactory(); var assetDesc = TypeFactory.Find(typeof(TestAssetUpdate)); memberMyClass = assetDesc.Members.FirstOrDefault(member => member.Name == "MyClass"); if (session != null) { session.Dispose(); dependencyManager.Dispose(); } package = new Package(); session = new PackageSession(package); dependencyManager = new AssetDependencyManager(session); assetUpdater = new AssetUpdater(dependencyManager); }
public AssetUpdater(AssetDependencyManager dependencyManager) { if (dependencyManager == null) throw new ArgumentNullException("dependencyManager"); this.dependencyManager = dependencyManager; }