public static async Task <Status> EmitState([ActivityTrigger] ReportingManagementState state, ILogger log, [SignalR(HubName = ReportingManagementState.HUB_NAME)] IAsyncCollector <SignalRMessage> signalRMessages) { var stateDetails = state.StateDetails; var groupName = StateUtils.BuildGroupName(stateDetails); var sendMethod = $"ReceiveState"; await signalRMessages.AddAsync(new SignalRMessage() { Target = sendMethod, GroupName = groupName, Arguments = new[] { state } }); return(Status.Success); }