Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 941066e

Browse files
committed
feat: Discovery function checking mesh for files
1 parent f0fc26c commit 941066e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ServiceLayer.Mesh/Functions/DiscoveryFunction.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using NHS.MESH.Client.Services;
55
using NHS.MESH.Client.Models;
66
using NHS.MESH.Client.Contracts.Services;
7+
using System.Threading.Tasks;
78

89
namespace ServiceLayer.Mesh.Functions
910
{
@@ -20,11 +21,11 @@ public DiscoveryFunction(ILoggerFactory loggerFactory, IMeshInboxService meshInb
2021
}
2122

2223
[Function("DiscoveryFunction")]
23-
public void Run([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer)
24+
public async Task Run([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer)
2425
{
2526
_logger.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
2627

27-
28+
var response = await _meshInboxService.GetMessagesAsync(Environment.GetEnvironmentVariable("MailboxId"));
2829

2930
if (myTimer.ScheduleStatus is not null)
3031
{

0 commit comments

Comments
 (0)