File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed
Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ def validate_extension_bundles():
7474
7575try :
7676 # disabling linter on this line because it fails to recognize the conditional export
77- from .decorators import DFApp # noqa
77+ from .decorators import DFApp , BluePrint # noqa
7878 __all__ .append ('DFApp' )
79+ __all__ .append ('BluePrint' )
7980except ModuleNotFoundError :
8081 pass
Original file line number Diff line number Diff line change 11# Copyright (c) Microsoft Corporation. All rights reserved.
22# Licensed under the MIT License.
33"""Decorator definitions for Durable Functions."""
4- from .durable_app import DFApp
4+ from .durable_app import DFApp , BluePrint
55
66__all__ = [
7- "DFApp"
7+ "DFApp" ,
8+ "BluePrint"
89]
Original file line number Diff line number Diff line change 1111from functools import wraps
1212
1313
14- class DFApp (FunctionRegister , TriggerApi , BindingApi ):
15- """Durable Functions (DF) app.
14+ class BluePrint (TriggerApi , BindingApi ):
15+ """Durable Functions (DF) blueprint container.
16+
17+ It allows functions to be declared via trigger and binding decorators,
18+ but does not automatically index/register these functions.
1619
17- Exports the decorators required to register DF Function-types.
20+ To register these functions, utilize the `register_functions` method from any
21+ :class:`FunctionRegister` subclass, such as `DFApp`.
1822 """
1923
2024 def __init__ (self ,
@@ -226,3 +230,12 @@ def decorator():
226230 return decorator ()
227231
228232 return wrap
233+
234+
235+ class DFApp (BluePrint , FunctionRegister ):
236+ """Durable Functions (DF) app.
237+
238+ Exports the decorators required to declare and index DF Function-types.
239+ """
240+
241+ pass
You can’t perform that action at this time.
0 commit comments