BuildIt.CognitiveServices.AcademicSearchAPIExtensions.CalcHistogram C# (CSharp) Method

CalcHistogram() public static method

The calchistogram REST API is used to calculate the distribution of attribute values for a set of paper entities.
public static CalcHistogram ( this operations, string expr, string model = "latest", string attributes = default(string), double count = 10, double offset, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
expr string /// A query expression that specifies the entities over which to calculate /// histograms. ///
model string /// Name of the model that you wish to query. Currently, the value defaults to /// "latest". /// . Possible values include: 'beta-2015', 'latest' ///
attributes string /// A comma delimited list that specifies the attribute values that are /// included in the response. Attribute names are case-sensitive. ///
count double /// Number of results to return. ///
offset double /// Index of the first result to return. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
return void
            public static void CalcHistogram(this IAcademicSearchAPI operations, string expr, string model = "latest", string attributes = default(string), double? count = 10, double? offset = 0, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string))
            {
                System.Threading.Tasks.Task.Factory.StartNew(s => ((IAcademicSearchAPI)s).CalcHistogramAsync(expr, model, attributes, count, offset, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None,  System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
            }