コード例 #1
0
 public static IEnumerable <IReference> FindMissingReferences(this AssetDependencyManager manager, AssetItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     return(manager.FindMissingReferences(item.Id));
 }
コード例 #2
0
 public static AssetDependencies Find(this AssetDependencyManager manager, AssetItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     return(manager.FindDependencySet(item.Id));
 }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: AssetUpdater.cs プロジェクト: h78hy78yhoi8j/xenko
        public AssetUpdater(AssetDependencyManager dependencyManager)
        {
            if (dependencyManager == null) throw new ArgumentNullException("dependencyManager");

            this.dependencyManager = dependencyManager;
        }