Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sandbox/functions-recipes/includes/routes-routeparameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ To add parameters to your route, put the parameter in curly braces in the route
[FunctionName("Example")]
public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route="Example/{parameter}")]HttpRequestMessage req,
string parameter,
TraceWriter log)
ILogger log)
{
log.Info($"C# HTTP trigger function processed a request {parameter}");
log.LogInfo($"C# HTTP trigger function processed a request {parameter}");

return new HttpResponseMessage(HttpStatusCode.Accepted);
}
Expand All @@ -22,8 +22,8 @@ public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLeve
[<FunctionName("Example")>]
let Run([<HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route="Example/{parameter}")>] req: HttpRequestMessage,
parameter: string,
log: TraceWriter) =
log.Info(sprintf "F# HTTP trigger function processed a request %s" parameter)
log: ILogger) =
log.LogInfo(sprintf "F# HTTP trigger function processed a request %s" parameter)
new HttpResponseMessage(HttpStatusCode.Accepted)
```

Expand All @@ -36,4 +36,4 @@ If only the parameter name is entered, it defaults to type string. If you want t

[!include[](../includes/read-more-heading.md)]

- [Azure Functions HTTP and webhook bindings](https://docs.microsoft.com/azure/azure-functions/functions-bindings-http-webhook)
- [Azure Functions HTTP and webhook bindings](https://docs.microsoft.com/azure/azure-functions/functions-bindings-http-webhook)