I am looking for ideal approach for having an azure function to handle generic type input parameter. For ex:
[FunctionName(nameof(SendToQueueActivityFunction))]
public async Task SendToQueueActivity<T>([ActivityTrigger] SendToQueueRequest<T> sendToQueueRequest)
Basically, "SendToQueueActivity" should be able to send any object of type T.
The above code doesnt work. If function binding doesnt support generics, what should be the right approach to have function behave differently based on input types. I am looking for a cleaner way of implementation than something like using "dynamic" type.
Thanks for your time and inputs.