Skip to content

Commit 7115b44

Browse files
authored
Updated variable names, clarified data file usage
1 parent e139152 commit 7115b44

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

dotnet/InkRecognition/quickstart/recognizeInk.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ namespace RecognizeInk
1717
class Program
1818
{
1919
// <vars>
20-
// Replace the subscriptionKey string with your valid subscription key.
21-
static readonly string subscriptionKey = Environment.GetEnvironmentVariable("INK_RECOGNITION_SUBSCRIPTION_KEY");
20+
// Add your Ink Recognizer subscription key to your environment variables.
21+
static readonly string subscriptionKey = Environment.GetEnvironmentVariable("INK_RECOGNIZER_SUBSCRIPTION_KEY");
22+
23+
// Add your Ink Recognizer endpoint to your environment variables.
24+
// For example: <your-custom-subdomain>.cognitiveservices.azure.com
25+
static readonly string endpoint = Environment.GetEnvironmentVariable("INK_RECOGNIZER_ENDPOINT");
26+
static readonly string inkRecognitionUrl = "/inkrecognizer/v1.0-preview/recognize";
2227

2328
// Replace the dataPath string with a path to the JSON formatted ink stroke data.
29+
// Optionally, use the example-ink-strokes.json file of this sample. Add to your bin\Debug\netcoreapp3.0 project folder.
2430
static readonly string dataPath = @"PATH_TO_INK_STROKE_DATA";
25-
26-
// URI information for ink recognition. Your endpoint should look like:
27-
// <your-custom-subdomain>.cognitiveservices.azure.com
28-
static readonly string endpoint = Environment.GetEnvironmentVariable("INK_RECOGNITION_ENDPOINT");
29-
static readonly string inkRecognitionUrl = "/inkrecognizer/v1.0-preview/recognize";
3031
// </vars>
3132
// <request>
3233
static async Task<string> Request(string apiAddress, string endpoint, string subscriptionKey, string requestData)

0 commit comments

Comments
 (0)