Skip to content

Commit 8bf3129

Browse files
authored
Update publish-kb-csharp.md
1 parent 29f10b9 commit 8bf3129

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cognitive-services/QnAMaker/Quickstarts/publish-kb-csharp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ At the top of Program.cs, replace the single using statement with the following
4747

4848
## Add required constants
4949

50-
In the **Main** method, add the required constants to access QnA Maker. Replace the values with your own.
50+
In the **Program** class, add the required constants to access QnA Maker.
5151

52-
[!code-csharp[Add the required constants](~/samples-qnamaker-csharp/documentation-samples/quickstarts/publish-knowledge-base/QnAMakerPublishQuickstart/Program.cs?range=11-14 "Add the required constants")]
52+
[!code-csharp[Add the required constants](~/samples-qnamaker-csharp/documentation-samples/quickstarts/publish-knowledge-base/QnAMakerPublishQuickstart/Program.cs?range=8-34 "Add the required constants")]
5353

54-
## Add POST request to publish knowledge base
54+
## Add the Main method to publish the knowledge base
5555

5656
After the required constants, add the following code, which makes an HTTPS request to the QnA Maker API to publish a knowledge base and receives the response:
5757

58-
[!code-csharp[Add HTTP Post request and response](~/samples-qnamaker-csharp/documentation-samples/quickstarts/publish-knowledge-base/QnAMakerPublishQuickstart/Program.cs?range=16-29&dedent=8 "Add HTTP Post request and response")]
58+
[!code-csharp[Add HTTP Post request and response](~/samples-qnamaker-csharp/documentation-samples/quickstarts/publish-knowledge-base/QnAMakerPublishQuickstart/Program.cs?range=36-56 "Add HTTP Post request and response")]
5959

6060
The API call returns a 204 status for a successful publish without any content in the body of the response.
6161

0 commit comments

Comments
 (0)