Created
December 10, 2019 21:51
-
-
Save dariuszparzygnat/6d3cdc16fa8ac5ebe566394c4306bed1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FunctionName("CreateMessage")] | |
public static async Task<string> FirstActivityFunction([ActivityTrigger] string input) | |
{ | |
return $"Hello {input}!"; | |
} | |
[FunctionName("SendMessageToQueue")] | |
public static async Task SecondActivityFunction( | |
[ActivityTrigger] string input, | |
[Queue("messages", Connection = "StorageConnection")] | |
IAsyncCollector<string> messages) | |
{ | |
await messages.AddAsync(input); | |
await messages.FlushAsync(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment