Merge pull request #228 from wiazur/patch-7

Added a little more instruction.
This commit is contained in:
Dina Berry 2018-09-26 12:46:43 -07:00 коммит произвёл GitHub
Родитель 3a71ae14df 0abde01c48
Коммит 7413d44362
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -54,7 +54,7 @@ This sample was written inside the Azure portal for Azure functions. Copy the co
1. Follow [Create your first function using Visual Studio](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-your-first-function-visual-studio).
1. Add the NuGet package `System.Net.Http`. Copy any missing `using` declarations found at the top of the [run.csx](./run.csx) file in this sample that are not in your function app, and add them to your app.
1. Add the NuGet package `System.Net.Http` and `System.Data.SqlClient`. Copy any missing `using` declarations found at the top of the [run.csx](./run.csx) file in this sample that are not in your function app, and add them to your app. Do not copy the `#r` declarations at the top of the `run.csx` file into your Visual Studio app, as these lines are only used for creating the app in the Azure portal.
1. Copy the code inside the `async Run()` function from the [run.csx](./run.csx) file and insert it into the `async Run()` function in your Visual Studio function app. However, keep the `Run()` method signature of the app (not the one from the run.csx file). Include the `static HttpClient httpClient = new HttpClient();` instantiation line from [run.csx](./run.csx) and place it right after the class declaration of your app, like this: