File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/Worker.Extensions.DurableTask Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ public ValueTask<ConversionResult> ConvertAsync(ConverterContext context)
25
25
throw new ArgumentNullException ( nameof ( context ) ) ;
26
26
}
27
27
28
+ // Special handling for FunctionContext
29
+ // This addresses cases where the activity function has only FunctionContext as a parameter.
30
+ if ( context . TargetType == typeof ( FunctionContext ) )
31
+ {
32
+ return new ( ConversionResult . Unhandled ( ) ) ;
33
+ }
34
+
28
35
if ( context . Source is null )
29
36
{
30
37
return new ( ConversionResult . Success ( null ) ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Functions.Worker;
15
15
[ AttributeUsage ( AttributeTargets . Parameter ) ]
16
16
[ DebuggerDisplay ( "{Activity}" ) ]
17
17
[ InputConverter ( typeof ( ActivityInputConverter ) ) ]
18
- [ ConverterFallbackBehavior ( ConverterFallbackBehavior . Disallow ) ]
18
+ [ ConverterFallbackBehavior ( ConverterFallbackBehavior . Allow ) ]
19
19
public sealed class ActivityTriggerAttribute : TriggerBindingAttribute
20
20
{
21
21
/// <summary>
You can’t perform that action at this time.
0 commit comments