MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Example code could stand to be cleaned up a little to minimize confusion #121260

Closed JPL-Alliant closed 7 months ago

JPL-Alliant commented 7 months ago

Examples should be, at a minimum, correct. Finding methods like this without an async call in the body:

[FunctionName("SignalRTest")]
public async Task SendMessage([SignalRTrigger]InvocationContext invocationContext, string message, ILogger logger)
{
    logger.LogInformation($"Receive {message} from {invocationContext.ConnectionId}.");
}

[Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PesalaPavan commented 7 months ago

@JPL-Alliant Thanks for your feedback! We will investigate and update as appropriate.

Y-Sindo commented 7 months ago

Thanks for your feedback. The doc will be updated soon.

RyanHill-MSFT commented 7 months ago

please-close