BuildIt.CognitiveServices.ContentModeratorModerateExtensions.ImageEvaluate C# (CSharp) Method

ImageEvaluate() public static method

Returns probabilities of the image containing racy or adult content.
public static ImageEvaluate ( this operations, bool cacheImage = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
cacheImage bool /// Whether to retain the submitted image for future use; defaults to false if /// omitted ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
return void
            public static void ImageEvaluate(this IContentModeratorModerate operations, bool? cacheImage = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string))
            {
                System.Threading.Tasks.Task.Factory.StartNew(s => ((IContentModeratorModerate)s).ImageEvaluateAsync(cacheImage, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None,  System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
            }