I have a requirement like I want to subscribe an GraphQLHttpClient using CreateSubscriptionStream into a function app .
stream.Subscribe(
response =>
{
Console.WriteLine($"RaceUpdatesSubscription message: \"{response.Data}\" ");
SendMsgToTopic.SendMessageToTopicAsync(response.Data, _serviceBusConnectionString, _raceUpdatesTopicName).Wait();
},
exception => Console.WriteLine($"message RaceUpdatesSubscription stream failed: {exception}"),
() => Console.WriteLine($"message RaceUpdatesSubscription stream completed")
);
How can I achieve that Like is there any way to user any trigger from azure function or register this for subscription (Any changes happen then I need to listen that)
Now its working fine with console app but trying to use function app.