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():
74
74
75
75
try :
76
76
# 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
78
78
__all__ .append ('DFApp' )
79
+ __all__ .append ('BluePrint' )
79
80
except ModuleNotFoundError :
80
81
pass
Original file line number Diff line number Diff line change 1
1
# Copyright (c) Microsoft Corporation. All rights reserved.
2
2
# Licensed under the MIT License.
3
3
"""Decorator definitions for Durable Functions."""
4
- from .durable_app import DFApp
4
+ from .durable_app import DFApp , BluePrint
5
5
6
6
__all__ = [
7
- "DFApp"
7
+ "DFApp" ,
8
+ "BluePrint"
8
9
]
Original file line number Diff line number Diff line change 11
11
from functools import wraps
12
12
13
13
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.
16
19
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`.
18
22
"""
19
23
20
24
def __init__ (self ,
@@ -226,3 +230,12 @@ def decorator():
226
230
return decorator ()
227
231
228
232
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