Skip to content

Commit

Permalink
Update DurableFunctionsOrchestrationCSharp..cs
Browse files Browse the repository at this point in the history
  • Loading branch information
bachuv authored Dec 29, 2023
1 parent 0a806d0 commit e70e783
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

namespace MSSQL
{
public static class Function1
public static class DurableFunctionsOrchestrationCSharp
{
[FunctionName("Function1")]
[FunctionName("DurableFunctionsOrchestrationCSharp")]
public static async Task<List<string>> RunOrchestrator(
[OrchestrationTrigger] IDurableOrchestrationContext context)
{
Expand All @@ -33,14 +33,14 @@ public static string SayHello([ActivityTrigger] string name, ILogger log)
return $"Hello {name}!";
}

[FunctionName("Function1_HttpStart")]
[FunctionName("DurableFunctionsHttpStart")]
public static async Task<HttpResponseMessage> HttpStart(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestMessage req,
[DurableClient] IDurableOrchestrationClient starter,
ILogger log)
{
// Function input comes from the request content.
string instanceId = await starter.StartNewAsync("Function1", null);
string instanceId = await starter.StartNewAsync("DurableFunctionsOrchestrationCSharp", null);

log.LogInformation("Started orchestration with ID = '{instanceId}'.", instanceId);

Expand Down

0 comments on commit e70e783

Please sign in to comment.