@@ -13,11 +13,19 @@ public static class BindingMetadataExtensions
13
13
private const string HttpTrigger = "httpTrigger" ;
14
14
private const string EventGridTrigger = "eventGridTrigger" ;
15
15
private const string SignalRTrigger = "signalRTrigger" ;
16
+ public const string AssistantSkillTrigger = "assistantSkillTrigger" ;
16
17
private const string BlobTrigger = "blobTrigger" ;
17
18
18
19
private const string BlobSourceKey = "source" ;
19
20
private const string EventGridSource = "eventGrid" ;
20
21
22
+ private static readonly HashSet < string > WebHookTriggers = new ( StringComparer . OrdinalIgnoreCase )
23
+ {
24
+ EventGridTrigger ,
25
+ SignalRTrigger ,
26
+ AssistantSkillTrigger ,
27
+ } ;
28
+
21
29
private static readonly HashSet < string > DurableTriggers = new ( StringComparer . OrdinalIgnoreCase )
22
30
{
23
31
"entityTrigger" ,
@@ -46,7 +54,7 @@ public static bool IsHttpTrigger(this BindingMetadata binding)
46
54
/// <param name="binding">The binding metadata to check.</param>
47
55
/// <returns><c>true</c> if a webhook trigger, <c>false</c> otherwise.</returns>
48
56
/// <remarks>
49
- /// Known webhook triggers includes SignalR, Event Grid triggers.
57
+ /// Known webhook triggers includes SignalR, Event Grid, and Assistant Skill triggers.
50
58
/// </remarks>
51
59
public static bool IsWebHookTrigger ( this BindingMetadata binding )
52
60
{
@@ -55,13 +63,7 @@ public static bool IsWebHookTrigger(this BindingMetadata binding)
55
63
throw new ArgumentNullException ( nameof ( binding ) ) ;
56
64
}
57
65
58
- if ( string . Equals ( EventGridTrigger , binding . Type , StringComparison . OrdinalIgnoreCase )
59
- || string . Equals ( SignalRTrigger , binding . Type , StringComparison . OrdinalIgnoreCase ) )
60
- {
61
- return true ;
62
- }
63
-
64
- return false ;
66
+ return WebHookTriggers . Contains ( binding . Type ) ;
65
67
}
66
68
67
69
/// <summary>
0 commit comments