static async Task Main(string[] args) { await GetAreaOfInterestSample.RunAsync(endpoint, subscriptionKey); Console.WriteLine("\nPress ENTER to exit."); Console.ReadLine(); }
public const string endpoint = "https://westus.api.cognitive.microsoft.com"; // You must use the same Azure region that you generated your subscription keys for. Free trial subscription keys are generated in the westus region. static void Main(string[] args) { GetAreaOfInterestSample.RunAsync(endpoint, subscriptionKey).Wait(5000); Console.WriteLine("\nPress ENTER to exit."); Console.ReadLine(); }