Skip to content

Commit 62b004c

Browse files
committed
var fixes
1 parent c418aa6 commit 62b004c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dotnet/InkRecognition/quickstart/recognizeInk.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ class Program
1818
{
1919
// <vars>
2020
// Replace the subscriptionKey string with your valid subscription key.
21-
const string subscriptionKey = Environment.GetEnvironmentVariable("INK_RECOGNITION_SUBSCRIPTION_KEY");
21+
static readonly string string subscriptionKey = Environment.GetEnvironmentVariable("INK_RECOGNITION_SUBSCRIPTION_KEY");
2222

2323
// Replace the dataPath string with a path to the JSON formatted ink stroke data.
24-
const string dataPath = @"PATH_TO_INK_STROKE_DATA";
24+
static readonly string string dataPath = @"PATH_TO_INK_STROKE_DATA";
2525

2626
// URI information for ink recognition. Your endpoint should look like:
2727
// <your-custom-subdomain>.cognitiveservices.azure.com
28-
const string endpoint = Environment.GetEnvironmentVariable("INK_RECOGNITION_ENDPOINT");
29-
const string inkRecognitionUrl = "/inkrecognizer/v1.0-preview/recognize";
28+
static readonly string string endpoint = Environment.GetEnvironmentVariable("INK_RECOGNITION_ENDPOINT");
29+
static readonly string string inkRecognitionUrl = "/inkrecognizer/v1.0-preview/recognize";
3030
// </vars>
3131
// <request>
3232
static async Task<string> Request(string apiAddress, string endpoint, string subscriptionKey, string requestData)

0 commit comments

Comments
 (0)