public AssetGraphNodeLinker(AssetPropertyGraphDefinition propertyGraphDefinition)
 {
     this.propertyGraphDefinition = propertyGraphDefinition;
 }
 public NodesToOwnerPartVisitor([NotNull] AssetPropertyGraphDefinition propertyGraphDefinition, [NotNull] INodeContainer nodeContainer, object ownerPart)
     : base(propertyGraphDefinition)
 {
     ownerPartNode = (IAssetObjectNode)nodeContainer.GetOrCreateNode(ownerPart);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssetGraphNodeChangeListener"/> class.
 /// </summary>
 /// <param name="rootNode">The root node of the extended graph to listen to.</param>
 /// <param name="propertyGraphDefinition">The <see cref="AssetPropertyGraphDefinition"/> that describes which nodes represent an object reference.</param>
 public AssetGraphNodeChangeListener(IGraphNode rootNode, [NotNull] AssetPropertyGraphDefinition propertyGraphDefinition)
     : base(rootNode)
 {
     this.propertyGraphDefinition = propertyGraphDefinition ?? throw new ArgumentNullException(nameof(propertyGraphDefinition));
 }