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)
2525 throw new ArgumentNullException ( nameof ( context ) ) ;
2626 }
2727
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+
2835 if ( context . Source is null )
2936 {
3037 return new ( ConversionResult . Success ( null ) ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Functions.Worker;
1515[ AttributeUsage ( AttributeTargets . Parameter ) ]
1616[ DebuggerDisplay ( "{Activity}" ) ]
1717[ InputConverter ( typeof ( ActivityInputConverter ) ) ]
18- [ ConverterFallbackBehavior ( ConverterFallbackBehavior . Disallow ) ]
18+ [ ConverterFallbackBehavior ( ConverterFallbackBehavior . Allow ) ]
1919public sealed class ActivityTriggerAttribute : TriggerBindingAttribute
2020{
2121 /// <summary>
You can’t perform that action at this time.
0 commit comments