-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Azure/azure-sdk-for-net
#46158Description
The SignalR Microsoft.Azure.WebJobs.Host.Triggers.ITriggerData.ReturnValueProvider.SetValueAsync(object value, CancellationToken cancellationToken) is always invoked with parameter value=null for isolated worker. This means the return value of SignalR triggered function without output binding annotated is not working at all. However, it works in the in-process model and the isolated process model of HTTP trigger.
[Function("Broadcast")]
public async Task<NewMessage> Broadcast(
[SignalRTrigger(nameof(Functions), "messages", "broadcast", "message")] SignalRInvocationContext invocationContext, string message)
{
return new NewMessage(invocationContext, "this is returned from function");
}The Worker.Extensions.Http` trigger is quite simple that has nothing to do with the return value handling. Need more investigation on what makes the difference. Any insight would be appreciated.
Furrman