I am trying to create azure durable functions for my project and get the following error for the code below.
[Function("OrdersQueueFunction")]
public async Task Run([QueueTrigger("bpbordersqueue")] [DurableClient] IDurableOrchestrationClient orchestrationClient, string orderData, ILogger log)
{
log.LogInformation($"C# Queue trigger function processed: {orderData}");
var orderValue = JsonSerializer.Deserialize<Order>(orderData);
await orderService.SaveData(orderValue);
if (orderValue.Status == Order.OrderStatus.Pending)
{
string instanceId = await orchestrationClient.StartNewAsync("OrchestrateRequestApproval", requestMetadata);
log.LogInformation($"Durable Function Ochestration started: {instanceId}");
}
}
Error:
Error AZFW0001 The attribute 'DurableClientAttribute' is a WebJobs attribute and not supported in the .NET Worker (Isolated Process).