Skip to content

Commit 45b6f6d

Browse files
committed
updating file refs
1 parent cd3588e commit 45b6f6d

File tree

1 file changed

+6
-6
lines changed
  • articles/cognitive-services/Ink-Recognizer/quickstarts

1 file changed

+6
-6
lines changed

articles/cognitive-services/Ink-Recognizer/quickstarts/csharp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ The source code for this quickstart can be found on [GitHub](https://go.microsof
4444

4545
1. In Visual Studio, create a new console solution and add the following packages.
4646

47-
[!code-csharp[import statements](~/cognitive-services-rest-samples/dotnet/InkRecognition/quickstart/recognizeInk.cs?name=imports)]
47+
[!code-csharp[import statements](~/cognitive-services-rest-samples/dotnet/Vision/InkRecognition/quickstart/recognizeInk.cs?name=imports)]
4848

4949
2. Create variables for your subscription key and endpoint, and the example JSON file. The endpoint will later be combined with `inkRecognitionUrl` to access the API.
5050

51-
[!code-csharp[endpoint file and key variables](~/cognitive-services-rest-samples/dotnet/InkRecognition/quickstart/recognizeInk.cs?name=vars)]
51+
[!code-csharp[endpoint file and key variables](~/cognitive-services-rest-samples/Vision/dotnet/InkRecognition/quickstart/recognizeInk.cs?name=vars)]
5252

5353
## Create a function to send requests
5454

@@ -58,29 +58,29 @@ The source code for this quickstart can be found on [GitHub](https://go.microsof
5858

5959
3. Send the request with `PutAsync()`. If the request is successful, return the response.
6060

61-
[!code-csharp[request example method](~/cognitive-services-rest-samples/dotnet/InkRecognition/quickstart/recognizeInk.cs?name=request)]
61+
[!code-csharp[request example method](~/cognitive-services-rest-samples/dotnet/Vision/InkRecognition/quickstart/recognizeInk.cs?name=request)]
6262

6363
## Send an ink recognition request
6464

6565
1. Create a new function called `recognizeInk()`. Construct the request and send it by calling the `Request()` function with your endpoint, subscription key, the URL for the API, and the digital ink stroke data.
6666

6767
2. Deserialize the JSON object, and write it to the console.
6868

69-
[!code-csharp[request to recognize ink data](~/cognitive-services-rest-samples/dotnet/InkRecognition/quickstart/recognizeInk.cs?name=recognize)]
69+
[!code-csharp[request to recognize ink data](~/cognitive-services-rest-samples/dotnet/Vision/InkRecognition/quickstart/recognizeInk.cs?name=recognize)]
7070

7171
## Load your digital ink data
7272

7373
Create a function called `LoadJson()` to load the ink data JSON file. Use a `StreamReader` and `JsonTextReader` to create a `JObject` and return it.
7474

75-
[!code-csharp[load the JSON file](~/cognitive-services-rest-samples/dotnet/InkRecognition/quickstart/recognizeInk.cs?name=loadJson)]
75+
[!code-csharp[load the JSON file](~/cognitive-services-rest-samples/dotnet/Vision/InkRecognition/quickstart/recognizeInk.cs?name=loadJson)]
7676

7777
## Send the API request
7878

7979
1. In the main method of your application, load your JSON data with the function created above.
8080

8181
2. Call the `recognizeInk()` function created above. Use `System.Console.ReadKey()` to keep the console window open after running the application.
8282

83-
[!code-csharp[file main method](~/cognitive-services-rest-samples/dotnet/InkRecognition/quickstart/recognizeInk.cs?name=main)]
83+
[!code-csharp[file main method](~/cognitive-services-rest-samples/dotnet/Vision/InkRecognition/quickstart/recognizeInk.cs?name=main)]
8484

8585

8686
## Run the application and view the response

0 commit comments

Comments
 (0)