private static void CheckUnresolvedReferences(Model.IDataContext context) { if (context.UnknownReferences.Count > 0) { Log.Info($"Found {context.UnknownReferences.Count} unknown references during import: " + string.Join(", ", context.UnknownReferences)); } }
private IEnumerable <Model.IElement> GetElements(Model.IDataContext context) { switch (ImportMode) { case ImportMode.SubmodelElements: return(context.LoadSubmodelElements()); case ImportMode.Submodels: return(context.LoadSubmodels()); default: return(new List <Model.IElement>()); } }