Dynamo.Graph.Workspaces.WorkspaceModel.OnConnectorAdded C# (CSharp) Method

OnConnectorAdded() protected method

protected OnConnectorAdded ( ConnectorModel obj ) : void
obj ConnectorModel
return void
        protected virtual void OnConnectorAdded(ConnectorModel obj)
        {
            RegisterConnector(obj);
            var handler = ConnectorAdded;
            if (handler != null) handler(obj);
            //Check if the workspace is loaded, i.e all the nodes are
            //added to the workspace. In that case, compute the Upstream cache for the
            //given node.
            if (workspaceLoaded)
            {
                obj.End.Owner.ComputeUpstreamOnDownstreamNodes();
            }
        }
WorkspaceModel