/// <inheritdoc/> public void AddResolvedInterface(IInterfaceGraphType graphType) { if (graphType == null) { throw new ArgumentNullException(nameof(graphType)); } _ = graphType.IsValidInterfaceFor(this, throwError: true); ResolvedInterfaces.Add(graphType); }
public async Task <IEnumerable <string> > Resolver(IReadOnlyCollection <Dtmi> dtmis) { List <string> texts = new List <string>(); foreach (Dtmi dtmi in dtmis) { if (modelStore.TryGetValue(dtmi, out DTInterfaceInfo @interface)) { ResolvedInterfaces.Add(@interface); texts.Add(@interface.GetJsonLdText()); } } return(texts); }