Skip to content

Commit

Permalink
Adding dapr triggers and binding templates (#3480)
Browse files Browse the repository at this point in the history
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
Co-authored-by: MD Ashique <noorani.ashique5@gmail.com>
  • Loading branch information
khkh-ms and ASHIQUEMD committed Oct 12, 2023
1 parent ca01384 commit aa34614
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Azure.Functions.Cli/Helpers/DotnetHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ await TemplateOperation(async () =>
"servicebusqueuetrigger" => "squeue",
"servicebustopictrigger" => "stopic",
"timertrigger" => "timer",
"daprpublishoutputbinding" => "daprPublishOutputBinding",
"daprserviceinvocationtrigger" => "daprServiceInvocationTrigger",
"daprtopictrigger" => "daprTopicTrigger",
_ => throw new ArgumentException($"Unknown template '{templateName}'", nameof(templateName))
};

Expand All @@ -116,7 +119,10 @@ internal static IEnumerable<string> GetTemplates(WorkerRuntime workerRuntime)
"ServiceBusQueueTrigger",
"ServiceBusTopicTrigger",
"EventGridTrigger",
"CosmosDBTrigger"
"CosmosDBTrigger",
"DaprPublishOutputBinding",
"DaprServiceInvocationTrigger",
"DaprTopicTrigger",
};
}

Expand All @@ -135,7 +141,10 @@ internal static IEnumerable<string> GetTemplates(WorkerRuntime workerRuntime)
"ServiceBusTopicTrigger",
"EventGridTrigger",
"CosmosDBTrigger",
"IotHubTrigger"
"IotHubTrigger",
"DaprPublishOutputBinding",
"DaprServiceInvocationTrigger",
"DaprTopicTrigger",
};
}

Expand Down

0 comments on commit aa34614

Please sign in to comment.