Esempio n. 1
0
 private List <Method> GetMethods(string documentName, Uri host, string defaultRoute)
 {
     return(apiDescriptionsProvider.ApiDescriptionGroups.Items
            .SelectMany(g => g.Items)
            .Where(x => !(options.IgnoreObsoleteActions && x.IsObsoleteTransitive()))
            .Where(x => x.ActionDescriptor.GetProperty <MethodMetadata>() != null) // process only JsonRpc actions
            .Where(x => options.DocInclusionPredicate(documentName, x))
            .OrderBy(x => x.Properties[ApiExplorerConstants.ActionNameProperty])
            .Select(x => GetMethod(x, host, defaultRoute))
            .ToList());
 }