I have a queue trigger (for example):
[FunctionName("Handle-Invoice")]
[StorageAccount("StorageAccountConnectionString")]
public async Task InvoiceQueueTrigger(
[QueueTrigger("invoice-queue")] CloudQueueMessage cloudMessage,
ExecutionContext context,
ILogger log)
{
// Async code which might need access to the storage account for the queue
}
Where StorageAccountConnectionString
is defined in the function's config.
I'm wondering if there's a way to implicitly access the value of the connection string defined in the StorageAccount
attribute?
I know I can access the value directly from either the environment or configuration but it'd be good to access the value either by a binding or some other method.
Thanks.