Soru

Zorluk: KolayImplement Durable Functions

You are developing an order processing workflow using Azure Durable Functions in C# (.NET Isolated). You need to write an HTTP-triggered function that acts as the entry point to start the orchestration workflow. Which parameter binding attribute must you use to obtain a client instance for starting the orchestrator?

  1. [DurableClient]Cevap
  2. B
    [OrchestrationTrigger]
  3. C
    [ActivityTrigger]
  4. D
    [QueueTrigger]

Cevap

The [DurableClient] attribute must be used to bind the client parameter that starts the orchestration.
The [DurableClient] attribute binds the client parameter (such as DurableTaskClient in .NET Isolated) to the function, enabling it to start new orchestration instances.

Adım Adım Çözüm

1
Identify the role of the entry-point function.
The entry-point function (such as an HTTP-triggered function) needs to start the orchestrator using a client object.
Durable Functions use client bindings to interact with orchestrations from non-durable functions.
2
Select the correct binding for the client in .NET Isolated.
Use the [DurableClient] attribute on a DurableTaskClient parameter.
This binding instantiates the client-side wrapper allowing developers to invoke StartNewAsync or other management methods.

Anahtar Kavram

Durable Functions Client Binding
Tahmini Süre:45s
Bu soruyu puanla