in azure/durable_functions/decorators/durable_app.py [0:0]
def orchestration_trigger(self, context_name: str,
orchestration: Optional[str] = None):
"""Register an Orchestrator Function.
Parameters
----------
context_name: str
Parameter name of the DurableOrchestrationContext object.
orchestration: Optional[str]
Name of Orchestrator Function.
The value is None by default, in which case the name of the method is used.
"""
@self._configure_orchestrator_callable
@self._configure_function_builder
def wrap(fb):
def decorator():
fb.add_trigger(
trigger=OrchestrationTrigger(name=context_name,
orchestration=orchestration))
return fb
return decorator()
return wrap