src/Misc/EFTools/XmlCore/Model/ModelManager.cs
/// <summary>
///     This method will do the following.
///     - Add EFArtifact reference to the EFArtifactSet.
///     - Update artifactsByUri and artifact2ArtifactSet dictionaries.
///     - Initialize the EFArtifact.
/// </summary>
/// <param name="efArtifact"></param>
/// <param name="efArtifactSet"></param>
This method will do the following.
This method will do the following .
internal void RegisterArtifact(EFArtifact efArtifact, EFArtifactSet efArtifactSet)
        {
            Debug.Assert(
                _artifactsByUri.ContainsKey(efArtifact.Uri) == false && _artifact2ArtifactSets.ContainsKey(efArtifact) == false,
                "This artifact has been registered in model manager.");
            if (_artifactsByUri.ContainsKey(efArtifact.Uri) == false
                && _artifact2ArtifactSets.ContainsKey(efArtifact) == false)
            {
                if (efArtifactSet.Artifacts.Contains(efArtifact) == false)
                {
                    efArtifactSet.Add(efArtifact);
                }
                _artifactsByUri[efArtifact.Uri] = efArtifact;
                var artifactSetList = new List<EFArtifactSet>(1);
                artifactSetList.Add(efArtifactSet);
                _artifact2ArtifactSets[efArtifact] = artifactSetList;
                efArtifact.Init();
            }
        }
internal void RegisterArtifact ( EFArtifact efArtifact , EFArtifactSet efArtifactSet ) { Debug . Assert ( _artifactsByUri . ContainsKey ( efArtifact . Uri ) == false && _artifact2ArtifactSets . ContainsKey ( efArtifact ) == false , " " ) ; if ( _artifactsByUri . ContainsKey ( efArtifact . Uri ) == false && _artifact2ArtifactSets . ContainsKey ( efArtifact ) == false ) { if ( efArtifactSet . Artifacts . Contains ( efArtifact ) == false ) { efArtifactSet . Add ( efArtifact ) ; } _artifactsByUri [ efArtifact . Uri ] = efArtifact ; var artifactSetList = new List < EFArtifactSet > ( 1 ) ; artifactSetList . Add ( efArtifactSet ) ; _artifact2ArtifactSets [ efArtifact ] = artifactSetList ; efArtifact . Init ( ) ; } }
This method will do the following.
This method will do the following .
efArtifact
EFArtifact
None
efArtifactSet
EFArtifactSet
None