Partially resolves #414. This PR adds a namespace client, under df.app, which provides methods to quickly register durable client functions. These functions receive three arguments instead of the regular two: the trigger, the durable client, and the InvocationContext, in this order. This allows users to quickly and easily register durable client functions, without having to manually configure the durableClient input binding and calling the getClient method. This PR starts out with three methods: http to register HTTP-triggered durable client functions, timer, and generic. These behave exactly the same as the equivalent from @azure/functions, except accepting the additional DurableClient argument.
Partially resolves #414. This PR adds a namespace
client
, underdf.app
, which provides methods to quickly register durable client functions. These functions receive three arguments instead of the regular two: the trigger, the durable client, and theInvocationContext
, in this order. This allows users to quickly and easily register durable client functions, without having to manually configure thedurableClient
input binding and calling thegetClient
method. This PR starts out with three methods:http
to register HTTP-triggered durable client functions,timer
, andgeneric
. These behave exactly the same as the equivalent from@azure/functions
, except accepting the additionalDurableClient
argument.Example usage:
HTTP-triggered client function
Timer-triggered client function
Storage Queue-triggered client function (using generic)