コード例 #1
0
        public ApiInformation(string docId, IApiCatalogLookup catalog, IApiRecommendations recommendations)
        {
            if (string.IsNullOrWhiteSpace(docId))
            {
                throw new ArgumentNullException(nameof(docId));
            }

            Definition = catalog.GetApiDefinition(docId);

            Supported = catalog.GetSupportedVersions(docId);

            AdditionalInformation   = recommendations.GetNotes(docId);
            SourceCompatibleChanges = recommendations.GetSourceCompatibleChanges(docId);
            RecommendedChanges      = recommendations.GetRecommendedChanges(docId);
            Component = recommendations.GetComponent(docId);
        }
コード例 #2
0
        public ApiInformation(string docId, IApiCatalogLookup catalog, IApiRecommendations recommendations)
        {
            if (string.IsNullOrWhiteSpace(docId))
            {
                throw new ArgumentNullException("docId");
            }

            Definition = catalog.GetApiDefinition(docId);

            Supported = catalog.GetSupportedVersions(docId);

            AdditionalInformation = recommendations.GetNotes(docId);
            SourceCompatibleChanges = recommendations.GetSourceCompatibleChanges(docId);
            RecommendedChanges = recommendations.GetRecommendedChanges(docId);
            Component = recommendations.GetComponent(docId);
        }