private void LoadCustomNodesIntoDynamo(CustomNodeManager loader, bool isTestMode) { foreach (var info in loader.AddUninitializedCustomNodesInPath(CustomNodeDirectory, isTestMode)) { LoadedCustomNodes.Add(info); } }
internal void RefreshCustomNodesFromDirectory(CustomNodeManager customNodeManager, bool isTestMode) { LoadedCustomNodes.Clear(); foreach (var x in customNodeManager.AddUninitializedCustomNodesInPath(CustomNodeDirectory, isTestMode)) { LoadedCustomNodes.Add(x); } }
private void LoadCustomNodesIntoDynamo(LoadPackageParams loadPackageParams) { var loader = loadPackageParams.CustomNodeManager; var isTestMode = loadPackageParams.IsTestMode; foreach (var info in loader.AddUninitializedCustomNodesInPath(CustomNodeDirectory, isTestMode)) { LoadedCustomNodes.Add(info); } }
internal void RefreshCustomNodesFromDirectory(CustomNodeManager customNodeManager, bool isTestMode) { LoadedCustomNodes.Clear(); var reloadedCustomNodes = customNodeManager.AddUninitializedCustomNodesInPath( CustomNodeDirectory, isTestMode, new PackageInfo(Name, new Version(versionName))); foreach (var x in reloadedCustomNodes) { LoadedCustomNodes.Add(x); } }
public void Load() { try { GetAssemblies().Select(DynamoLoader.LoadNodesFromAssembly).SelectMany(x => x).ToList().ForEach(x => LoadedTypes.Add(x)); DynamoLoader.LoadCustomNodes(CustomNodeDirectory).ForEach(x => LoadedCustomNodes.Add(x)); Loaded = true; } catch (Exception e) { dynSettings.DynamoLogger.Log("Exception when attempting to load package " + this.Name + " from " + this.RootDirectory); dynSettings.DynamoLogger.Log(e.GetType() + ": " + e.Message); } }
private void LoadCustomNodesIntoDynamo(DynamoLoader loader) { loader.LoadCustomNodes(CustomNodeDirectory).ForEach(x => LoadedCustomNodes.Add(x)); }