Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [FunctionName("GetTranscriptionToDoCount_Timer")]
- public async static Task GetTranscriptionToDoCount_Timer(
- [TimerTrigger("0 */1 * * * *")]TimerInfo myTimer,
- [SignalR(HubName = "typeit")] IAsyncCollector<SignalRMessage> signalRMessages,
- [Table(tableName, Connection = "AzureWebJobsStorage")] CloudTable TranscriptionTable,
- ILogger log)
- {
- log.LogInformation($"GetTranscriptionToDoCount_Timer trigger function executed at: {DateTime.Now}");
- try
- {
- log.LogInformation("Getting Count Of Items");
- var m = new msg();
- m.sender = "function";
- m.text = $"ToDo|{filteredList.Count}";
- object message = m;
- await signalRMessages.AddAsync(new SignalRMessage
- {
- Target = "newMessage",
- Arguments = new[] { message }
- });
- }
- catch (Exception ex)
- {
- log.LogError(ex.Message);
- throw;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement