Skip to content

The SignalR triggered function return value not working #1496

@Y-Sindo

Description

@Y-Sindo

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions