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

Commit 4f64ffd

Browse files
committed
feat: channging env var name
1 parent 0d3a21d commit 4f64ffd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
1010
MailboxId=X26ABC1
1111
MeshSharedKey=TestKey
1212
MeshPassword=password
13-
BSSMailBox=X26ABC1
13+
NBSSMailBoxId=X26ABC1
1414
MeshApiBaseUrl=http://localhost:8700/messageexchange
1515
ASPNETCORE_ENVIRONMENT=Development
1616
FileDiscoveryTimerExpression=*/5 * * * *

src/ServiceLayer.Mesh/Functions/FileDiscoveryFunction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public async Task Run([TimerTrigger("%FileDiscoveryTimerExpression%")] TimerInfo
2020
logger.LogInformation($"DiscoveryFunction started at: {DateTime.Now}");
2121

2222
// TODO - abstract this out into an injectable configuration interface for testing purposes
23-
var mailboxId = Environment.GetEnvironmentVariable("BSSMailBox")
24-
?? throw new InvalidOperationException($"Environment variable 'BSSMailBox' is not set or is empty.");
23+
var mailboxId = Environment.GetEnvironmentVariable("NBSSMailBoxId")
24+
?? throw new InvalidOperationException($"Environment variable 'NBSSMailBoxId' is not set or is empty.");
2525

2626
var response = await meshInboxService.GetMessagesAsync(mailboxId);
2727

src/ServiceLayer.Mesh/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// MESH Client config
2020
services
2121
.AddMeshClient(_ => _.MeshApiBaseUrl = Environment.GetEnvironmentVariable("MeshApiBaseUrl"))
22-
.AddMailbox(Environment.GetEnvironmentVariable("BSSMailBox"), new NHS.MESH.Client.Configuration.MailboxConfiguration
22+
.AddMailbox(Environment.GetEnvironmentVariable("NBSSMailBoxId"), new NHS.MESH.Client.Configuration.MailboxConfiguration
2323
{
2424
Password = Environment.GetEnvironmentVariable("MeshPassword"),
2525
SharedKey = Environment.GetEnvironmentVariable("MeshSharedKey"),

tests/ServiceLayer.Mesh.Tests/Functions/FileDiscoveryFunctionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public FileDiscoveryFunctionTests()
3232

3333
_dbContext = new ServiceLayerDbContext(options);
3434

35-
Environment.SetEnvironmentVariable("BSSMailBox", "test-mailbox");
35+
Environment.SetEnvironmentVariable("NBSSMailBoxId", "test-mailbox");
3636
Environment.SetEnvironmentVariable("QueueUrl", "https://fakestorageaccount.queue.core.windows.net/testqueue");
3737

3838
_function = new FileDiscoveryFunction(

0 commit comments

Comments
 (0)